diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-03-22 14:25:13 +0100 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-03-22 14:25:13 +0100 |
commit | 057c92dd1be77fc30db9115b63737225df9a6b57 (patch) | |
tree | da28d802889857651f800a5f3af1e3b881c6e09b /docs/resources/make_cover.sh | |
parent | 854746cec81b291fd6059fe8e767b69b949aaf32 (diff) |
Fix cover image (use imagemagick convert).
Fix initial svg page size to avoid image distortion,
and generate "real" jpg image using imagemagick convert tool
Diffstat (limited to 'docs/resources/make_cover.sh')
-rwxr-xr-x | docs/resources/make_cover.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/resources/make_cover.sh b/docs/resources/make_cover.sh index bdbe414d..fef20876 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 |