The PNG is missing interlacing support and compression flags.
Interlacing is fully supported by libPNG with the Adam7 algorithm.
So add these flags to FreeImage.h
/*PNG Save Flags */
You can use these compression presets or just put a number between 1 or 9 to set the compression for ZLIB.
I've modified pngplugin.cpp also to improve compression for high color images (>16bit) by using filters and Z_FILTERED strategy, like libPNG documentation recommends. The results prove that using this optimization the compression ratio is better.
Hervé, I hope you will include this patch in the FreeImage distribution...
I have attached the modified Save function from plugin.cpp:
Anonymous
Logged In: YES
user_id=613758
Originator: NO
Thanks for the patch,
it is now merged with the CVS.
Best regards,
Hervé Drolon
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).