Can jpeg:optimize-coding be set in code?

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
drc

Can jpeg:optimize-coding be set in code?

Post by drc »

Is there a way programmatically to do the same thing as the command line "convert -define jpeg:optimize-coding=false ..." ? I would like to save a Jpeg file using the default Huffman tables within code.

thanks,
dan
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Can jpeg:optimize-coding be set in code?

Post by magick »

Which API are you using? For MagickCore, use
  • SetImageOption(image_info,"jpeg:optimize-coding","false");
drc

Re: Can jpeg:optimize-coding be set in code?

Post by drc »

That's it. I am using MagickCore indirectly through MagickNet. Thank you for the quick reply.
Post Reply