Added tablet screenshot

This commit is contained in:
ByteHamster 2020-07-19 10:51:23 +02:00
parent d2d7dbfea3
commit d804c867c0
9 changed files with 21 additions and 1 deletions

View File

@ -6,6 +6,12 @@ function generateText() {
-annotate 0 "$1" /tmp/text.png
}
function generateTabletText() {
echo "$1"
convert -size 1730x350 xc:none -gravity Center -pointsize 80 -fill white -font Lato-Regular \
-annotate 0 "$1" /tmp/text.png
}
function simplePhone() {
generateText "$1"
convert templates/phone.png \
@ -14,6 +20,15 @@ function simplePhone() {
$3
}
function simpleTablet() {
generateTabletText "$1"
convert $2 -resize 1280 "/tmp/resized-image.png"
convert templates/tablet.png \
/tmp/resized-image.png -geometry +227+459 -composite \
/tmp/text.png -geometry +0+0 -composite \
$3
}
function addLayer() {
convert $2 $1 -composite $2
}
@ -27,6 +42,7 @@ function generateScreenshots() {
text3=`cat raw/$language/texts.txt | head -4 | tail -1`
text4=`cat raw/$language/texts.txt | head -5 | tail -1`
text5=`cat raw/$language/texts.txt | head -6 | tail -1`
text6=`cat raw/$language/texts.txt | head -7 | tail -1`
simplePhone "$text0" raw/$language/00.png output/$language/00.png
simplePhone "$text1" raw/$language/01.png output/$language/01.png
@ -42,7 +58,8 @@ function generateScreenshots() {
simplePhone "$text4" raw/$language/04.png output/$language/04.png
simplePhone "$text5" raw/$language/05.png output/$language/05.png
addLayer templates/suggestions.png output/$language/05.png
mogrify -resize 1120 "output/$language/*.png"
simpleTablet "$text6" raw/$language/tablet.png output/$language/tablet.png
mogrify -resize 1120 "output/$language/0*.png"
}
mkdir output 2>/dev/null

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 KiB

View File

@ -4,3 +4,4 @@ Spare Zeit mit\nautomatischen Downloads
Wähle dein\nLieblings-Theme
Passe AntennaPod\nan deine Wünsche an
Entdecke tausende\nneuer Podcasts
Genieße deine Podcasts. Überall. Jederzeit.

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

View File

@ -4,3 +4,4 @@ Save time with\nautomatic downloads
Select the theme\nthat fits best to you
Adapt AntennaPod\nto your needs
Discover thousands\nof great podcasts
Enjoy your podcasts. Anywhere. Anytime.

Binary file not shown.

After

Width:  |  Height:  |  Size: 466 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 466 KiB

View File

@ -4,3 +4,4 @@ Bespaar tijd met\nautomatische downloads
Selecteer het thema\ndat het best bij je past
Pas AntennaPod aan\naan jouw wensen
Ontdek honderden\ninteressante podcasts
Enjoy your podcasts. Anywhere. Anytime.

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB