Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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!



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...




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: