WriteJpeg Method
WriteJpeg Method
Why not use cinfo->optimize_coding = TRUE; and jpeg_simple_progression(cinfo); on WriteJpeg Method ?
Re: 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.gblanco wrote:Why not use cinfo->optimize_coding = TRUE; and jpeg_simple_progression(cinfo); on WriteJpeg Method ?
Re: WriteJpeg Method
Same quality ...
- Attachments
-
- 76kb with -optimize
- 034-capture.jpg (75.72 KiB) Viewed 3107 times
-
- 88kb
- 034.jpg (87.23 KiB) Viewed 3107 times
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: WriteJpeg Method
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
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
Kfir Itzhak.
Re: WriteJpeg Method
that would be great !!!!