trunk-logo-white

最新消息

用 ImageMagick 處理 GitBook 的封面圖片

Share This Post

分享在 facebook
分享在 linkedin
分享在 twitter
分享在 email

Mac OS X 安裝 ImageMagick

http://cactuslab.com/imagemagick/

請設計師提供 PNG-24 1800×2360 的封面圖片原檔,在 Git Repo 保留一份原圖,然後搭配 Makefile 來做 cover 轉檔。

GitBook 官方建議封面圖片大小 1800×2360

PNG to JPEG

$ convert cover.png -quality 85 cover.jpg

Resize to Small Cover

GitBook 官方建議縮圖大小為 200×262

$ convert cover.jpg -quality 85 -resize 200x262 cover_small.jpg

檢查圖片大小的指令,可用 identify

$ identify cover.jpg
cover.jpg JPEG 1800x2360 1800x2360+0+0 8-bit sRGB 708KB 0.070u 0:00.069
$ identify cover_small.jpg
cover_small.jpg JPEG 200x262 200x262+0+0 8-bit sRGB 30.1KB 0.000u 0:00.000
產品資訊
tilda.lu

產品資訊

Ut Elit Tellus, Luctus Nec Ullamcorper Mattis, Pulvinar Dapibus Leo. Donec Sodales Sagittis Magna. Sed Consequat, Leo Eget Bibendum Sodales, Augue Velit Cursus Nunc, Quis Gravida Magna Mi A Libero. Lorem Ipsum Dolor Sit Amet, Consectetur Adipiscing.Ut Elit Tellus, Luctus Nec Ullamcorper Mattis, Pulvinar Dapibus Leo. Donec Sodales Sagittis Magna. Sed Consequat, Leo Eget Bibendum Sodales, Augue Velit Cursus Nunc, Quis Gravida Magna Mi A Libero. Lorem Ipsum Dolor Sit Amet, Consectetur Adipiscing.

閱讀更多 »

Do You Want To Boost Your Business?​

Drop Us A Line And Keep In Touch​