This encoding mode offers half the speed of progressive mode for similar compression (usually lower, but higher with certain image types).The standard optimized encoding is usually better than the progressive encoding when dealing with images having large areas with the same colors and quality setting lower than 50.
To implement it you need to add these lines after jpeg_set_defaults(&cinfo); in the Save function
//optimize Huffman tables
if((flags & JPEG_OPTIMIZE) == JPEG_OPTIMIZE) {
cinfo.optimize_coding = true;
}
and define in FreeImage.h
Anonymous
Thanks for the patch : it is now merged with the CVS.
Hervé
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).