Re: [Jmagick] How to do JPEG Compression Save at 10
Bob,
You are totally right about the units. I totally missed that part. I
needed to set the setUnits as Pixels per inch.
And again you are totally right about quality on PNG. Thank you. I am new
to this and I am trying to put pieces together for the first time.
Thank you.
Bob Friesenhahn wrote:
>
> 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@masked-domain], http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
>
> _______________________________________________
> JMagick mailing list
> [JMagick@masked-domain]
> http://www.yeo.id.au/mailman/listinfo/jmagick
> Please ensure that [JMagick@masked-domain] is a recipient when replying.
>
>
--
View this message in context: http://www.nabble.com/How-to-do-JPEG-Compression-Save-at-10-tp838254p18142721.html
Sent from the JMagick mailing list archive at Nabble.com.
_______________________________________________
JMagick mailing list
[JMagick@masked-domain]
http://www.yeo.id.au/mailman/listinfo/jmagick
Please ensure that [JMagick@masked-domain] is a recipient when replying.
Other messages in this topic