« Return to Thread: How to do JPEG Compression Save at 10

Re: How to do JPEG Compression Save at 10

by Bob Friesenhahn :: Rate this Message:

Reply to Author | View in Thread

On Thu, 26 Jun 2008, srinivasp wrote:

> I am trying to set the quality of a png to something lower (for smaller
> image size).
> You are right "getQuality" of MagickImage returning a zero 0.

It used to be that this would return a value of 75 as a default.
PNGs don't actually have "quality" since PNG is lossless.  The quality
value is used to select various parameters when the file is written.
A higher quality value will usually take more CPU to write and is
often smaller.

> Just curious if anybody actually been sucessful in setting the
> compression/quality. Also when I use setXResolution (90) and
> setYResolution(90), and resize the image, the output png's x-resoultion is
> 0.009 and y-resolution is 0.009.
>
> I dont know what to infer from that.  Anybody help?

The PNG units are likely millimeters rather than DPI.  I would have to
check the specification to be sure.  The 'units' parameter determines
what the values you supply represent.  However, if the native units
are metric, then the software has to convert to the native units.

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
Please ensure that JMagick@... is a recipient when replying.

 « Return to Thread: How to do JPEG Compression Save at 10