Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: abdb1162ed
Fetching contributors…

Cannot retrieve contributors at this time

executable file 16 lines (14 sloc) 0.443 kB
#!/bin/sh
for x in $(find images/ -name "*.png"); do
echo "Processing ${x}"
identify -quiet -verbose "${x}" | grep "alpha: 1-bit" > /dev/null
if [ "$?" -ne "0" ]; then
# non-1-bit-alpha image, process normally
optipng -o7 -quiet "${x}"
else
# disable color type reduction because that will break
# transparency for the images in JOSM using the current
# image loading method (see #1576)
optipng -nc -o7 -quiet "${x}"
fi
done
Jump to Line
Something went wrong with that request. Please try again.