WriteJpeg Method

Forum for questions and support relating to the 1.25.x releases only.
Locked
gblanco
Posts: 28
Joined: Sun Jul 17, 2011 2:15 pm
Location: Porto Alegre, Brazil

WriteJpeg Method

Post by gblanco »

Why not use cinfo->optimize_coding = TRUE; and jpeg_simple_progression(cinfo); on WriteJpeg Method ?
gblanco
Posts: 28
Joined: Sun Jul 17, 2011 2:15 pm
Location: Porto Alegre, Brazil

Re: WriteJpeg Method

Post 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.
gblanco
Posts: 28
Joined: Sun Jul 17, 2011 2:15 pm
Location: Porto Alegre, Brazil

Re: WriteJpeg Method

Post by gblanco »

Same quality ...
Attachments
76kb with -optimize
76kb with -optimize
034-capture.jpg (75.72 KiB) Viewed 3107 times
88kb
88kb
034.jpg (87.23 KiB) Viewed 3107 times
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: WriteJpeg Method

Post 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
Kfir Itzhak.
gblanco
Posts: 28
Joined: Sun Jul 17, 2011 2:15 pm
Location: Porto Alegre, Brazil

Re: WriteJpeg Method

Post by gblanco »

that would be great !!!!
Locked