Fix pkg-config module to check for gtk+-3.0.
[gmpc.git] / pixmaps / convert.sh
blobd7998666d81451358565ea699202034689ec1203
1 #!/bin/bash
3 for a in icons/scalable/status/stylized-*cover.svg icons/scalable/status/*-artist.svg; do
4 for b in "48" "64" "72" "96" "128"; do
5 size=$b'x'$b
6 output=${a/scalable/$size};
7 width=`inkscape -W "$a"`
8 height=`inkscape -H "$a"`
9 echo ${height/.*/} -ge ${width/.*/}
10 if [ ${height/.*/} -ge ${width/.*/} ]; then
11 echo inkscape -z -D -h $b -e "${output/svg/png}" "$a";
12 inkscape -z -D -h $b -e "${output/svg/png}" "$a";
13 else
14 echo inkscape -z -D -w $b -e "${output/svg/png}" "$a";
15 inkscape -z -D -w $b -e "${output/svg/png}" "$a";
17 # inkscape -z -D -w $b -h $b -e "${output/svg/png}" "$a"
18 # convert -scale $b "${output/svg/png}" "${output/svg/png}"
19 done
20 done