How to get pngcrush to overwrite original files?

Posted by DisgruntledGoat on Ask Ubuntu See other posts from Ask Ubuntu or by DisgruntledGoat
Published on 2011-02-16T02:15:24Z Indexed on 2011/02/16 7:33 UTC
Read the original article Hit count: 448

Filed under:
|
|

I've read through man pngcrush and it seems that there is no way to crush a PNG file and save it over the original. I want to compress several folders worth of PNGs so it would be useful to do it all with one command!

Currently I am doing pngcrush -q -d . *.png then manually cut-pasting the files from the tmp directory to the original folder. So I guess using mv might be the best way to go? Any better ideas?

© Ask Ubuntu or respective owner

Related posts about 10.10

Related posts about command-line