Changeset 7507 in josm for trunk/optimize-images


Ignore:
Timestamp:
2014-09-05T17:08:31+02:00 (10 years ago)
Author:
Don-vip
Message:

cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/optimize-images

    r4939 r7507  
    33for x in $(find images/ -name "*.png"); do
    44        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}"
    156done
Note: See TracChangeset for help on using the changeset viewer.