summaryrefslogtreecommitdiffstats
path: root/docs/resources/make_cover.sh
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-06-12 09:36:44 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-06-12 09:36:44 +0200
commita3e6126b082335cb9722c6b8d5321dd39d6d2dca (patch)
treed4d1bd6f330a624f7c85c86269b15d686a840ff9 /docs/resources/make_cover.sh
parent4788a840abe82f2c0f20b027589085d29051763c (diff)
Updating README and add usage documentation.
Change-Id: I1bc2ef589ef60098cd1c1eb203e3140c0c955eed Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'docs/resources/make_cover.sh')
-rwxr-xr-xdocs/resources/make_cover.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/resources/make_cover.sh b/docs/resources/make_cover.sh
new file mode 100755
index 0000000..fef2087
--- /dev/null
+++ b/docs/resources/make_cover.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+cat cover.svg | sed -e 's/{title}/Low Level CAN binding/' \
+ -e 's/font-size:87.5px/font-size:50px/g' \
+ -e 's/{subtitle}//g' \
+ -e 's/{version}/Version 1.0/g' \
+ -e 's/{date}/March 2017/g' \
+ > /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
+
+convert -resize "200x262!" ../cover.jpg ../cover_small.jpg