Code: Select all
# PNG is smaller than jpg, but it seems html2ps only accepts 4bit png, otherwise it converts to a noisy jpeg!
for i in !(*_4bit).png
do
# we will write the png here instead
#( mv "$i" "${i%%.*}.PNG" ) &
( convert "$i" -depth 4 "${i%%.*}_4bit.PNG" ) &
done