Page 1 of 1
WriteJpeg Method
Posted: Thu Mar 01, 2012 8:22 pm
by gblanco
Why not use cinfo->optimize_coding = TRUE; and jpeg_simple_progression(cinfo); on WriteJpeg Method ?
Re: WriteJpeg Method
Posted: Thu Mar 01, 2012 8:34 pm
by gblanco
gblanco wrote:Why not use cinfo->optimize_coding = TRUE; and jpeg_simple_progression(cinfo); on WriteJpeg Method ?
I used jpegtrans with -optimize (Optimize Huffman table (smaller file, but slow compression)) and the jpeg file became 12% smaller than the file generated by zm.
Re: WriteJpeg Method
Posted: Thu Mar 01, 2012 8:41 pm
by gblanco
Same quality ...
Re: WriteJpeg Method
Posted: Tue Mar 06, 2012 2:10 pm
by mastertheknife
This is interesting.
optimize_coding generates optimal huffman tables for the image, instead of using the standard ones. This results usually in a smaller file, but has an higher cpu usage. So perhaps this should be an option.
mastertheknife
Re: WriteJpeg Method
Posted: Tue Mar 06, 2012 2:21 pm
by gblanco
that would be great !!!!