[pngzop] Renamed try-pngzop to pngzop-try, fixed pngzop

This commit is contained in:
Glenn Randers-Pehrson
2013-03-11 22:19:45 -05:00
parent e892d57dfa
commit 47b0c0d309
2 changed files with 4 additions and 15 deletions

15
pngzop
View File

@@ -1,17 +1,6 @@
#!/bin/sh
# pngzop file.png > file_pz.idat
# For use in the pngzop project
# Copyright 2013 by Glenn Randers-Pehrson
# Released under the pngcrush license (equivalent to the libpng license)
# From a PNG file, finds the smallest resulting compressed IDAT
# data from zopfli compression of filter types 0 through 4 and
# "adaptive" (f5) filtering.
# To do: replace the IDAT chunks in the source PNG file with the
# result.
# pngzop file.png > file_pz.png
for f in 0 1 2 3 4 5
do
@@ -20,5 +9,5 @@ do
pngidat pngzop-f$f-$$.png
zopfli --i25 --zlib pngzop-f$f-$$.idat
done
echo `ls -S pngzop-f?-$$.idat.zlib | tail -1`
cat `ls -S pngzop-f?-$$.idat.zlib | tail -1`
rm pngzop-f?-$$.png pngzop-f?-$$.idat pngzop-f?-$$.idat.zlib

View File

@@ -1,8 +1,8 @@
#!/bin/sh
# try-pngzop
# pngzop-try
# usage: try-pngzop dir ...
# usage: pngzop-try dir ...
# runs pngzop on each PNG file in a set of directories