Changeset 7507 in josm for trunk/optimize-images
- Timestamp:
- 2014-09-05T17:08:31+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/optimize-images
r4939 r7507 3 3 for x in $(find images/ -name "*.png"); do 4 4 echo "Processing ${x}" 5 identify -quiet -verbose "${x}" | grep "alpha: 1-bit" > /dev/null 6 if [ "$?" -ne "0" ]; then 7 # non-1-bit-alpha image, process normally 8 optipng -o7 -quiet "${x}" 9 else 10 # disable color type reduction because that will break 11 # transparency for the images in JOSM using the current 12 # image loading method (see #1576) 13 optipng -nc -o7 -quiet "${x}" 14 fi 5 optipng -o7 -quiet "${x}" 15 6 done
Note:
See TracChangeset
for help on using the changeset viewer.