Commit c36b6193 authored by nylnook's avatar nylnook

export for HD ebooks over 1920x1200 for Amazon and under 4 millions pixels for...

export for HD ebooks over 1920x1200 for Amazon and under 4 millions pixels for Apple + print test with bookelis
parent 1d75a113
This diff is collapsed.
#!/bin/bash
# Copyright (c) 2017 Camille Bissuel, MIT License
#!/bin/sh
# Copyright (c) 2015 Camille Bissuel, MIT License
# v5
# Usage: ./export-comic layout/ep0-ebook-en/01.svg
# Usage: ./export-comic --all layout/ep0-ebook-en/
# v4
# Usage: ./export-comic ebook-en/source-file.svg
# Usage: ./export-comic --all ebook-en/
# Require Bash 4, Exiftools, Inkscape, ImageMagick, Gostscript, Sed, Calibre, Zip and and Unzip
......@@ -150,8 +150,9 @@ function exportHDFile {
filename="${filename%.*}"
#extension="${filename##*.}"
# export for web
inkscape -z $file -e=temp.png -d=342 --export-background-opacity=255
# export for HD ebooks over 1920x1200 for Amazon and under 4 millions pixels for Apple
# A5 287 ppi = 2373*1672 pixels = 3967656 pixels
inkscape -z $file -e=temp.png -d=287 --export-background-opacity=255
convert temp.png -unsharp 0.48x0.48+0.50+0.012 -colorspace sRGB -quality 92% page-HD-$filename.jpg
rm temp.png
# Metadata : First remove everything for privacy
......@@ -533,7 +534,8 @@ function convertToeBooks {
mv $joinedfilename.epub ../$direbooks
#export cover under 4 millions pixels for Apple
convert page-HD-$firstfilename.jpg -resize 80% separate-ebook-cover.jpg
#convert page-HD-$firstfilename.jpg -resize 80% separate-ebook-cover.jpg
cp page-HD-$firstfilename.jpg separate-ebook-cover.jpg
mv separate-ebook-cover.jpg ../$direbooks
cd ..
......@@ -613,8 +615,8 @@ function printExamples {
echo "Please pass a --all, --images, --web-images, --hd-images, --ebook-images, --print-images, --print, --ebook, --artwork flag and a directory or a path to a filename.svg to this script.
Shortcodes -a, -i, -webi, -hdi, -ebi, -printi, -p, -e, -art
Examples : "
echo "./export-comic layout/ep0-ebook-en/01.svg"
echo "./export-comic --all layout/ep0-ebook-en/"
echo "./export-comic ebook-en/source-file.svg"
echo "./export-comic --all ebook-en/"
}
......
This diff is collapsed.
......@@ -24,11 +24,11 @@
borderopacity="1.0"
inkscape:pageopacity="1"
inkscape:pageshadow="2"
inkscape:zoom="1.5036982"
inkscape:cx="202.46142"
inkscape:cy="242.15226"
inkscape:zoom="1.2418722"
inkscape:cx="314.28175"
inkscape:cy="74.104595"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:current-layer="layer3"
showgrid="false"
units="mm"
inkscape:window-width="2560"
......@@ -160,14 +160,14 @@
y="344.67175" /></flowRegion><flowPara
id="flowPara4208"
style="font-size:15px;line-height:1"> </flowPara></flowRoot> <image
sodipodi:absref="/home/nylnook/Crea/BD/Mokatori/layout/ep0 print-fr/../p03.jpg"
sodipodi:absref="/home/nylnook/Crea/BD/Mokatori/layout/ep0-ebook-fr/../p03.jpg"
xlink:href="../p03.jpg"
y="307.18097"
x="-99.686302"
id="image4229"
preserveAspectRatio="none"
width="725.70593"
height="725.70593"
width="725.70593" />
preserveAspectRatio="none"
id="image4229"
x="-99.686302"
y="307.18097" />
<rect
style="opacity:1;fill:url(#linearGradient4242);fill-opacity:1;stroke:none;stroke-width:1.0629921;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect4234"
......@@ -199,7 +199,7 @@
y="659.13397"
style="fill:#ffffff" /></flowRegion><flowPara
id="flowPara4250"
style="font-size:15px;line-height:1">La dernière fois qu'il y a eu autant de dioxyde de carbone (CO2) dans l'atmosphère… c'était il y a 3 millions d'années*. Les dinosaures n'étaient pas encore nés.</flowPara></flowRoot> </g>
style="font-size:15px;line-height:1">La dernière fois qu'il y a eu autant de dioxyde de carbone (CO2) dans l'atmosphère… c'était il y a 3 millions d'années*. Nous n'étions pas encore nés.</flowPara></flowRoot> </g>
<g
sodipodi:insensitive="true"
inkscape:groupmode="layer"
......
......@@ -16,7 +16,7 @@
id="svg2"
version="1.1"
inkscape:version="0.92.1 r"
sodipodi:docname="23.svg">
sodipodi:docname="15.svg">
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
......@@ -24,11 +24,11 @@
borderopacity="1.0"
inkscape:pageopacity="1"
inkscape:pageshadow="2"
inkscape:zoom="4.1515839"
inkscape:cx="438.31461"
inkscape:cy="696.90268"
inkscape:zoom="1.6536649"
inkscape:cx="251.69081"
inkscape:cy="563.09749"
inkscape:document-units="mm"
inkscape:current-layer="g4746"
inkscape:current-layer="layer2"
showgrid="false"
units="mm"
inkscape:window-width="2560"
......@@ -662,7 +662,8 @@
<stop
id="stop4729"
offset="0"
stop-color="#999" />
stop-color="#999"
style="stop-color:#c7beac;stop-opacity:1" />
<stop
id="stop4731"
offset=".10092"
......@@ -670,7 +671,8 @@
<stop
id="stop4733"
offset=".26172"
stop-color="#b3b3b3" />
stop-color="#b3b3b3"
style="stop-color:#bbbcbc;stop-opacity:1" />
<stop
id="stop4735"
offset=".5429"
......@@ -678,7 +680,8 @@
<stop
id="stop4737"
offset="1"
stop-color="#aaa" />
stop-color="#aaa"
style="stop-color:#c8c1b4;stop-opacity:1" />
</linearGradient>
<rect
height="8"
......@@ -720,30 +723,30 @@
inkscape:label="artwork"
style="display:inline">
<image
sodipodi:absref="/home/nylnook/Crea/BD/Mokatori/layout/ep0+1 print-fr/../p23.png"
sodipodi:absref="/home/nylnook/Crea/BD/Mokatori/layout/ep1-ebook-fr/../p23.png"
xlink:href="../p23.png"
y="301.181"
x="-7.0866146"
id="image4737"
preserveAspectRatio="none"
width="538.65002"
height="758.25"
width="538.65002" />
preserveAspectRatio="none"
id="image4737"
x="-7.0866146"
y="301.181" />
<path
style="display:inline;opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.06203139;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke markers fill"
d="m 462.37086,293.91899 77.1249,-0.10216 -0.39624,79.32699 z"
id="rect6439"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
<g
id="g4746"
transform="matrix(-0.36815362,0,0,-0.38496359,545.67009,568.23559)"
style="display:inline;stroke-width:1.29622924">
<path
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:2.82106423;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke markers fill"
d="M 226.26214,712.57804 16.771085,712.84342 17.847395,506.7798 Z"
id="rect6439"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccc" />
<path
id="path4742"
d="m 76.732,540.82 v 130.36 h 131.19 C 190.726,660.126 81.862,551.05 76.732,540.82 Z"
transform="translate(-18.977,4.1254)"
inkscape:connector-curvature="0"
style="fill:url(#b);stroke-width:1.29622924"
transform="translate(-18.977,4.1254)" />
style="fill:url(#b);stroke-width:1.29622924" />
<path
id="path4744"
d="m 188.75,675.13 c -12.33,-0.44357 -131.32,-115.54 -131,-130.19 0.07935,9.9272 78.41,31.366 112.21,17.327 -7.0409,39.734 10.564,112.03 18.785,112.87 z"
......@@ -905,14 +908,14 @@
<text
id="text4770"
y="125.87588"
x="333.06836"
x="344.31836"
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:27.5px;line-height:0.80000001em;font-family:Comili;-inkscape-font-specification:Comili;text-indent:0;text-align:center;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:0px;word-spacing:0px;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:middle;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:3.54330707;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke markers fill;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
xml:space="preserve"><tspan
id="tspan4768"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:27.5px;line-height:0.80000001em;font-family:LetsTrace;-inkscape-font-specification:LetsTrace;word-spacing:-2.8125px;stroke:#ffffff;stroke-width:3.54330707;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;paint-order:stroke markers fill"
y="125.87588"
x="333.06836"
sodipodi:role="line">Notre séléction cycles électriques</tspan></text>
x="344.31836"
sodipodi:role="line">Notre sélection de cycles électriques</tspan></text>
<text
xml:space="preserve"
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:15px;line-height:0.80000001em;font-family:Comili;-inkscape-font-specification:Comili;text-indent:0;text-align:center;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:0px;word-spacing:0px;text-transform:none;writing-mode:lr-tb;direction:ltr;baseline-shift:baseline;text-anchor:middle;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:3.54330707;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke markers fill;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
......
......@@ -25,9 +25,9 @@
borderopacity="1.0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="1.7289191"
inkscape:cx="134.30754"
inkscape:cy="461.96366"
inkscape:zoom="0.9691402"
inkscape:cx="200.74501"
inkscape:cy="235.95377"
inkscape:document-units="mm"
inkscape:current-layer="layer4"
showgrid="false"
......@@ -319,14 +319,14 @@
id="layer1"
transform="translate(0,-308.26761)">
<image
sodipodi:absref="/home/nylnook/Crea/BD/Mokatori/layout/ep0+1 print-fr/../couv-ep0-3.png"
sodipodi:absref="/home/nylnook/Crea/BD/Mokatori/layout/ep0+1-print-fr/../couv-ep0-3.png"
xlink:href="../couv-ep0-3.png"
width="1062.9001"
height="758.25006"
preserveAspectRatio="none"
id="image4309"
y="301.19867"
x="-7.0866151"
y="301.19867" />
id="image4309"
preserveAspectRatio="none"
height="758.25006"
width="1062.9001" />
</g>
<g
transform="translate(0,-70.866142)"
......@@ -2790,7 +2790,7 @@
x="54.551323"
y="55.238964"
style="text-align:start;text-anchor:start" /></flowRegion><flowPara
id="flowPara4355-5">Merci à ma supportrice Sophie, à mes relectrices et relecteurs Eve, David, Géraldine, Fabien, Émilie, Caroline, Corinne et Eric.</flowPara><flowPara
id="flowPara4355-5">Merci à ma supportrice Sophie, à mes relectrices et relecteurs Eve, David, Géraldine, Fabien, Émilie, Caroline, Corinne, Eric et Yann.</flowPara><flowPara
id="flowPara4585">Merci en particulier à David, Caroline, Corinne et Eric pour leurs corrections en anglais, merci à tous les membres de Swarm Dynamics et de PlaceToB pour leur soutien et leur enthousiasme sans faille, et merci encore à Michael Keller et Al Jazeera America pour leur lecteur de BD web, et enfin à Bookelis de rendre cette auto-édition possible !</flowPara><flowPara
id="flowPara4587">Ces épisodes sont coproduit par onze lecteurs et mécènes : Chantal, David H, Dominique, Floriane, Framasky, Bruno et Danièle, Clotilde, Jeff, N'Nours, et Globulle merci infiniment !</flowPara></flowRoot> </g>
<g
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment