From 057c92dd1be77fc30db9115b63737225df9a6b57 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Wed, 22 Mar 2017 14:25:13 +0100 Subject: Fix cover image (use imagemagick convert). Fix initial svg page size to avoid image distortion, and generate "real" jpg image using imagemagick convert tool --- docs/resources/make_cover.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/resources/make_cover.sh') diff --git a/docs/resources/make_cover.sh b/docs/resources/make_cover.sh index bdbe414..fef2087 100755 --- a/docs/resources/make_cover.sh +++ b/docs/resources/make_cover.sh @@ -7,8 +7,8 @@ cat cover.svg | sed -e 's/{title}/Low Level CAN binding/' \ -e 's/{date}/March 2017/g' \ > /tmp/cover.svg -inkscape --without-gui --export-png=../cover.jpg \ - --export-background="#ffffff" -w 1800 -h 2360 /tmp/cover.svg +# use imagemagick convert tool (cover size must be 1800x2360) +convert -resize "1600x2160!" -border 100 -bordercolor white -background white \ + -flatten -quality 100 /tmp/cover.svg ../cover.jpg -inkscape --without-gui --export-png=../cover_small.jpg \ - --export-background="#ffffff" -w 200 -h 262 /tmp/cover.svg +convert -resize "200x262!" ../cover.jpg ../cover_small.jpg -- cgit 1.2.3-korg