On Wed, 14 Sep 2005, Prasad TV wrote:
> Hi Eric,
>
> As you said I tried by setting quality for info object before write to file.
> But when I open that new image in photo shop it allways shows saved as 12.
> But I want to save the file as 10. I tried with different values for quality
> between 1 to 100.
There is no standard for JPEG quality values. The IJG JPEG library
expects quality values between 1 to 100. So any application which
depends on IJG JPEG will do the same. However, Photoshop works
differently.
I believe that ImageMagick does include some code for estimating the
IJG JPEG quality value. This might show up in the output of
'identify -verbose'. This would be handy for determining the
eqivalents to Photoshop quality values.
> One more Quick Question, How do I set the DPI while saving an image?
>
> I have an image with 800 dpi, I want to resize to 285x431 with 72 DPI using
> JMagick api.
DPI is controlled via the ImageInfo 'density' or Image x_resolution
and y_resolution values. Note that Photoshop does not help here
either since while there is a standard for storing the resolution
value in JPEG, Photoshop doesn't usually use it. Instead it stores
resolution in a private profile attached to the image.
Bob
======================================
Bob Friesenhahn
bfriesen@...,
http://www.simplesystems.org/users/bfriesen/GraphicsMagick Maintainer,
http://www.GraphicsMagick.org/_______________________________________________
JMagick mailing list
JMagick@...
http://www.yeo.id.au/mailman/listinfo/jmagick