Three mainly cosmetic issues bundled into one report:
This seems so obvious that I'm wondering why it hasn't been fixed long ago and I can't find a bug report. Surely it's wrong that every run of pngcrush ends with either:
if it was able to reduce the size, something like...
(18.19% critical chunk reduction)
(100.00% filesize reduction)
...or if it wasn't able to reduce the size:
(no IDAT change)
(100.00% filesize reduction)
If for whatever reason it's not trivial to calculate the actual filesize reduction (which should be 0% if there's no reduction), how about just not outputting anything about it at all to avoid the confusion?
Best pngcrush method = 7 (ws 15 fm 0 zl 9 zs 0) = 3246
for output to user-specified-output.png
...where user-specified-output.png is whatever the user specified as output. But if you use the -ow switch it ends:
Best pngcrush method = 7 (ws 15 fm 0 zl 9 zs 0) = 3246
for output to pngout.png
...where pngout.png is just a normally unseen temp file and the real output is by overwriting the user specified input.
A triple space between "built with" and "bundled"
In general, the default output seems way too verbose. Wouldn't it be enough to have the 15 lines of copyright and build info only with the -v and maybe -help options?
Sorry about the messed up numbering above - kind of ironic in a report about cosmetic output issues. Should be readable still. There were supposed to be 3 numbered issues above:
PS. I'm learning that SourceForge's numbered list markdown restarts after code blocks, and can't be mixed with the generic list markdown. And the previewing is limited, and there's no editing the ticket after posting, only comments.
Last edit: wintakeall 2016-03-29
I can't reproduce (1). What's your platform?
I've fixed (2) in to-be-released version 1.8.1.
Removed the superfluous spaces in the Copyright line
The triple-space in the "bundled" line is to align the "built with" and "running with" lines.
Thanks
I'm running Windows 7 SP1 64-bit and using
pngcrush_1_8.0_w64.exeandpngcrush_1_8.0_w32.exedownloaded from the official SF distribution.Full output of sample test run using the w64 .exe and
basn0g01.pngfrom Willem van Schaik's PngSuite (www.schaik.com), but same wrong "(100.00% filesize reduction)" with the w32 exe and with any other .png:Last edit: wintakeall 2016-04-03
Most of these problems are fixed in pngcrush-1.8.1. A remaining error in the filesize report with the "-ow" option will be fixed in pngcrush-1.8.2.
Fixed in pngcrush-1.8.2