how to set progressive jpeg on Magickcore?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
cuongnh
Posts: 12
Joined: 2012-05-23T03:05:20-07:00
Authentication code: 13

how to set progressive jpeg on Magickcore?

Post by cuongnh »

hi every one?

Can you answer my question

how to set progressive jpeg on Magickcore?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: how to set progressive jpeg on Magickcore?

Post by magick »

You can force progressive JPEG's by prefixing the image file name with PJEG (.e.g. PJPEG:image.jpg). Alternatively set the interlace member of the image structure to something other than NoInterlace (e.g. image->interlace=LineInterlace) before you call WriteImage().
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: how to set progressive jpeg on Magickcore?

Post by anthony »

Added to IM Examples, Common File Formats, Related JPEG Output Formats
http://www.imagemagick.org/Usage/formats/#jpg_formats

Give is an hour or so to appear on the main web site
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply