News for hackers. Stuff that matters.
Re:Ask HN: Rate my app: PNGSquash by meese_ on Saturday June 27, 2009 @03:36PM (#677102)
Feature suggestion: Tell me which of the 4 compressors gave the best result.

This is a good idea, but I can't technically do this currently. The compressors are run one after another (it's essentially like "pngcrush infile outfile && optipng outfile && advpng outfile && pngout outfile"), so there is no real "best result", it just gets a bit smaller each time.

Also, since the point of testing 4 png compressors is to get the smallest size possible, why not use "smallest" as the default setting?

That's a good point, I've just committed the change :)

Thanks for the suggestions!

Re:Ask HN: Rate my app: PNGSquash by fhars on Sunday June 28, 2009 @06:25AM (#677646)
Have you tested that the sequence is optimal? What if pngcrush changes the image in a way that will make on of the later steps miss it's most promising optimization? Oh the joys of combinatorial explosion...