Is this your first time here? SwingWiki is a Java Swing Developer community site with an big archive of Swing-related usenet groups and mailing lists, but also tips, tricks and articles and book reviews written by your colleagues from around the world. If you came here through a search engine and did not find what you were looking for, make sure to check the wiki table of contents.

Re: [Jmagick] How to do JPEG Compression Save at 10

From:"Jacob Nordfalk" [jacob.nordfalk@masked-domain]
Sent on:Tue, 1 Jul 2008 15:34:33 +0545
In reply to:Re: [Jmagick] How to do JPEG Compression Save at 10 sent on Thu, 26 Jun 2008 14:27:34 -0700 (PDT) by srinivasp [spulakanam@masked-domain]


------=_Part_359_9101186.1214905773691
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

You are using the old JMagick mailling list.
We have switched to a new one some months ago.
The JMagick mailing list is now at [jmagick-users@masked-domain].

Please post there, to make sure that all participate in the same list.

To join the JMagick mailing list, please point your web brower at
https://lists.sourceforge.net/lists/listinfo/jmagick-users


Jacob



2008/6/27 srinivasp <[spulakanam@masked-domain]>:

>
> 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.
>



--
Jacob Nordfalk
http://javabog.dk
Skype: jacobnordfalk

------=_Part_359_9101186.1214905773691
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,<br>
<br>You are using the old JMagick mailling list. <br>We have switched to a new one some months ago.<br>
The JMagick mailing list is now at <a href="mailto:[jmagick-users@masked-domain]">[jmagick-users@masked-domain]</a>. <br>
<br>
Please post there, to make sure that all participate in the same list.<br>
<br>To join the JMagick mailing list, please point your web brower at<br>
&nbsp;&nbsp;&nbsp; <a href="https://lists.sourceforge.net/lists/listinfo/jmagick-users">https://lists.sourceforge.net/lists/listinfo/jmagick-users</a><br>
<br><br>
Jacob<br><br><br><br><div class="gmail_quote">2008/6/27 srinivasp &lt;<a href="mailto:[spulakanam@masked-domain]">[spulakanam@masked-domain]</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Bob,<br>
<br>
You are totally right about the units. &nbsp;I totally missed that part. &nbsp;I<br>
needed to set the setUnits as Pixels per inch.<br>
<br>
And again you are totally right about quality on PNG. &nbsp;Thank you. &nbsp;I am new<br>
to this and I am trying to put pieces together for the first time.<br>
<br>
Thank you.<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
Bob Friesenhahn wrote:<br>
&gt;<br>
&gt; On Thu, 26 Jun 2008, srinivasp wrote:<br>
&gt;<br>
&gt;&gt; I am trying to set the quality of a png to something lower (for smaller<br>
&gt;&gt; image size).<br>
&gt;&gt; You are right &quot;getQuality&quot; of MagickImage returning a zero 0.<br>
&gt;<br>
&gt; It used to be that this would return a value of 75 as a default.<br>
&gt; PNGs don&#39;t actually have &quot;quality&quot; since PNG is lossless. &nbsp;The quality<br>
&gt; value is used to select various parameters when the file is written.<br>
&gt; A higher quality value will usually take more CPU to write and is<br>
&gt; often smaller.<br>
&gt;<br>
&gt;&gt; Just curious if anybody actually been sucessful in setting the<br>
&gt;&gt; compression/quality. Also when I use setXResolution (90) and<br>
&gt;&gt; setYResolution(90), and resize the image, the output png&#39;s x-resoultion<br>
&gt;&gt; is<br>
&gt;&gt; 0.009 and y-resolution is 0.009.<br>
&gt;&gt;<br>
&gt;&gt; I dont know what to infer from that. &nbsp;Anybody help?<br>
&gt;<br>
&gt; The PNG units are likely millimeters rather than DPI. &nbsp;I would have to<br>
&gt; check the specification to be sure. &nbsp;The &#39;units&#39; parameter determines<br>
&gt; what the values you supply represent. &nbsp;However, if the native units<br>
&gt; are metric, then the software has to convert to the native units.<br>
&gt;<br>
&gt; Bob<br>
&gt; ======================================<br>
&gt; Bob Friesenhahn<br>
&gt; <a href="mailto:[bfriesen@masked-domain]">[bfriesen@masked-domain]</a>, <a href="http://www.simplesystems.org/users/bfriesen/"; target="_blank">http://www.simplesystems.org/users/bfriesen/</a><br>;
&gt; GraphicsMagick Maintainer, &nbsp; &nbsp;<a href="http://www.GraphicsMagick.org/"; target="_blank">http://www.GraphicsMagick.org/</a><br>;
&gt;<br>
&gt; _______________________________________________<br>
&gt; JMagick mailing list<br>
&gt; <a href="mailto:[JMagick@masked-domain]">[JMagick@masked-domain]</a><br>
&gt; <a href="http://www.yeo.id.au/mailman/listinfo/jmagick"; target="_blank">http://www.yeo.id.au/mailman/listinfo/jmagick</a><br>;
&gt; Please ensure that <a href="mailto:[JMagick@masked-domain]">[JMagick@masked-domain]</a> is a recipient when replying.<br>
&gt;<br>
&gt;<br>
<br>
</div></div><font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/How-to-do-JPEG-Compression-Save-at-10-tp838254p18142721.html"; target="_blank">http://www.nabble.com/How-to-do-JPEG-Compression-Save-at-10-tp838254p18142721.html</a><br>;

</font><div class="Ih2E3d">Sent from the JMagick mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="Wj3C7c">JMagick mailing list<br>
<a href="mailto:[JMagick@masked-domain]">[JMagick@masked-domain]</a><br>
<a href="http://www.yeo.id.au/mailman/listinfo/jmagick"; target="_blank">http://www.yeo.id.au/mailman/listinfo/jmagick</a><br>;
Please ensure that <a href="mailto:[JMagick@masked-domain]">[JMagick@masked-domain]</a> is a recipient when replying.<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Jacob Nordfalk<br><a href="http://javabog.dk">http://javabog.dk</a><br>Skype: jacobnordfalk

------=_Part_359_9101186.1214905773691--

--
Found what you were looking for? If not - continue at Wiki Index

Other messages in this topic

SenderDate sentSubject
srinivasp [spulakanam@masked-domain]Thu, 26 Jun 2008 14:27:34 -0700 (PDT)Re: [Jmagick] How to do JPEG Compression Save at 10
Bob Friesenhahn [bfriesen@masked-domain]Thu, 26 Jun 2008 14:25:08 -0500 (CDT)Re: [Jmagick] How to do JPEG Compression Save at 10
srinivasp [spulakanam@masked-domain]Thu, 26 Jun 2008 10:18:08 -0700 (PDT)Re: [Jmagick] How to do JPEG Compression Save at 10
zaske [yair.zaslavsky@masked-domain]Thu, 24 Jan 2008 05:07:42 -0800 (PST)Re: [Jmagick] How to do JPEG Compression Save at 10

 
Recent changes | RSS changes | Table of contents | News Archive | Terms And Conditions | Register | The Quest For Software++| Ruby Resources
FitNesse Resources