[Image-SIG] im.save("xyz.jpg") - quality?

Turner, Kingsley Kingsley.Turner@praxa.com.au
Thu, 15 Jul 1999 09:42:38 +1000


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BECE52.DFA1FC30
Content-Type: text/plain;
	charset="iso-8859-1"

G'day,

Is there any way to configure the way the PIL saves jpegs ?

I've got some code to make thumbnails (ok, it's almost the
same as in the manual).  

I'd really like to minimise the file size said thumbnails, and the
best way to do this is use the JPEG 'optimise' feature of the encoder
and to set the JPEG quality to about 50%.  (50% is a bit dodgey for
reproduction, but fine for thumbs)

Does the PIL automatically do 'optimized' jpeg saves ?

Is there a way I can adjust the quality factor for the compression
algorithm ?

ta muchly,
-kt

--
Kingsley Turner
Praxa x399 or mobile 0419621568 
"He's not the messiah, he's a very naughty boy!"
                                            -Brian's Mum

------_=_NextPart_001_01BECE52.DFA1FC30
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>im.save(&quot;xyz.jpg&quot;) - quality?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>G'day,</FONT>
</P>

<P><FONT SIZE=3D2>Is there any way to configure the way the PIL saves =
jpegs ?</FONT>
</P>

<P><FONT SIZE=3D2>I've got some code to make thumbnails (ok, it's =
almost the</FONT>
<BR><FONT SIZE=3D2>same as in the manual).&nbsp; </FONT>
</P>

<P><FONT SIZE=3D2>I'd really like to minimise the file size said =
thumbnails, and the</FONT>
<BR><FONT SIZE=3D2>best way to do this is use the JPEG 'optimise' =
feature of the encoder</FONT>
<BR><FONT SIZE=3D2>and to set the JPEG quality to about 50%.&nbsp; (50% =
is a bit dodgey for</FONT>
<BR><FONT SIZE=3D2>reproduction, but fine for thumbs)</FONT>
</P>

<P><FONT SIZE=3D2>Does the PIL automatically do 'optimized' jpeg saves =
?</FONT>
</P>

<P><FONT SIZE=3D2>Is there a way I can adjust the quality factor for =
the compression</FONT>
<BR><FONT SIZE=3D2>algorithm ?</FONT>
</P>

<P><FONT SIZE=3D2>ta muchly,</FONT>
<BR><FONT SIZE=3D2>-kt</FONT>
</P>

<P><FONT SIZE=3D2>--</FONT>
<BR><FONT SIZE=3D2>Kingsley Turner</FONT>
<BR><FONT SIZE=3D2>Praxa x399 or mobile 0419621568 </FONT>
<BR><FONT SIZE=3D2>&quot;He's not the messiah, he's a very naughty =
boy!&quot;</FONT>
<BR><FONT =
SIZE=3D2>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
-Brian's Mum</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01BECE52.DFA1FC30--