File: render_png.sh

package info (click to toggle)
qastools 0.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,896 kB
  • ctags: 3,525
  • sloc: cpp: 35,509; python: 148; sh: 10; makefile: 4
file content (17 lines) | stat: -rwxr-xr-x 477 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

PNGCRUSH="pngcrush -l 9"

convert -background transparent app-icon.svg -resize 16x16 temp.png
$PNGCRUSH temp.png app-icon-16x16.png

convert -background transparent app-icon.svg -resize 32x32 temp.png
$PNGCRUSH temp.png app-icon-32x32.png

convert -background transparent app-icon.svg -resize 48x48 temp.png
$PNGCRUSH temp.png app-icon-48x48.png

convert -background transparent app-icon.svg -resize 64x64 temp.png
$PNGCRUSH temp.png app-icon-64x64.png

rm temp.png