Re: Trouble with using MagickGetSamplingFactors API

Bob Friesenhahn <[email protected]> Thu, 4 Jul 2013 10:29:07 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
On Thu, 4 Jul 2013, google wrote:

> Hi Bob:
>       I am so Sorry , I didn't describe my ploblem exactly.  I just want to strip the input image ,
> and not to change the sampling factor and quality of the input image.

GM's normal operation is to decompress the image into memory and then 
recompress to the output image from memory.  This means that it is 
doing quite a lot more than just stripping attached profiles.

I think that if you use:

   MagickSetImageOption(wand,'jpeg','preserve-settings','true');

that GM should then apply the same settings that it deduced when the 
image file was read and so the output image may be virtually the same. 
If you attempt to change any of the settings (e.g. quality, sampling, 
colorspace), then this request will likely be ignored and it will use 
your new settings.  Someday this behavior may become the default.

However, there are multiple independently authored JPEG writers in the 
world and a JPEG written by Photoshop may not be identical to one 
written using the IJG JPEG library (as GM uses) because there is no 
standard for the encoding factors used. The original JPEG parameters 
are only estimated and are most accurate for JPEG written by IJG JPEG 
(which uses quality factor 0-100).

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

_______________________________________________
Graphicsmagick-apis mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-apis