taler-android

Android apps for GNU Taler (wallet, PoS, cashier)
Log | Files | Refs | README | LICENSE

generate-screenshot-product-images.sh (1587B)


      1 #!/usr/bin/env bash
      2 
      3 set -euo pipefail
      4 
      5 SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
      6 ASSET_DIR="$SCRIPT_DIR/../src/debug/assets/screenshot-products"
      7 FONT_PATH="/System/Library/Fonts/Supplemental/Arial Bold.ttf"
      8 mkdir -p "$ASSET_DIR"
      9 
     10 magick -size 640x640 xc:'#f3e8d2' \
     11   -fill '#6b3f2c' -draw 'roundrectangle 170,180 470,500 42,42' \
     12   -fill '#f8f4ec' -draw 'ellipse 320,250 88,44 0,360' \
     13   -fill '#dcc7ae' -draw 'ellipse 320,250 70,30 0,360' \
     14   -fill '#6b3f2c' -gravity south -font "$FONT_PATH" -pointsize 54 -annotate +0+48 'Coffee' \
     15   "$ASSET_DIR/coffee.png"
     16 
     17 magick -size 640x640 xc:'#dff1e2' \
     18   -fill '#72a96c' -draw 'polygon 320,150 430,350 210,350' \
     19   -fill '#c7e0a8' -draw 'polygon 320,210 390,330 250,330' \
     20   -fill '#3c6b48' -gravity south -font "$FONT_PATH" -pointsize 54 -annotate +0+48 'Tea' \
     21   "$ASSET_DIR/tea.png"
     22 
     23 magick -size 640x640 xc:'#f6e7d7' \
     24   -fill '#c8843b' -draw 'path \"M 150,360 Q 320,120 490,360 Q 320,470 150,360 z\"' \
     25   -fill '#e3ad62' -draw 'path \"M 210,335 Q 320,190 430,335 Q 320,405 210,335 z\"' \
     26   -fill '#80511f' -gravity south -font "$FONT_PATH" -pointsize 54 -annotate +0+48 'Croissant' \
     27   "$ASSET_DIR/croissant.png"
     28 
     29 magick -size 640x640 xc:'#efe7dc' \
     30   -fill '#c9914e' -draw 'roundrectangle 140,210 500,450 36,36' \
     31   -fill '#7ebc6f' -draw 'roundrectangle 165,250 475,300 25,25' \
     32   -fill '#d94b46' -draw 'roundrectangle 165,305 475,340 20,20' \
     33   -fill '#f4deb2' -draw 'roundrectangle 165,345 475,410 24,24' \
     34   -fill '#70491e' -gravity south -font "$FONT_PATH" -pointsize 50 -annotate +0+48 'Sandwich' \
     35   "$ASSET_DIR/sandwich.png"