[Pythonmac-SIG] PIL gui with Panther python?

Ronald Oussoren ronaldoussoren at mac.com
Mon Jul 12 15:22:14 CEST 2004


On 12-jul-04, at 15:05, Michael Hudson wrote:

> Ronald Oussoren <ronaldoussoren at mac.com> writes:
>
>> On 11-jul-04, at 19:09, David Eppstein wrote:
>>
>>> On 7/11/04 6:10 PM +0200 Ronald Oussoren <ronaldoussoren at mac.com>
>>> wrote:
>>>> PyObjC currently has no support for PIL images.
>>>>
>>>> BTW. Why do you have to display PIL images? Cocoa has support for
>>>> displaying images and transforming them.
>>>
>>> I guess I don't, but the code I was porting involved using PIL to
>>> resize and display images.  Does Cocoa have routines for rotation,
>>> antialiased downsizing, and saving back out to jpeg?  I didn't see
>>> them in a quick scan of the Cocoa "Drawing and Images" doc but maybe
>>> I was looking in the wrong place.
>>
>> I don't know about saving, but I have written a tool that rotates and
>> resizes images. That tool uses NSAffineTransformations to do the job.
>
> What's the quality like?  I've used NSImage to resize images (not
> using NSAffineTransformations but rather an obscure series of hacks I
> don't want to go into) and was underwhelmed by the results...

Good enough. The result was at least as good as the Windows program 
that was doing the job at the time.

Ronald
--
X|support bv            http://www.xsupport.nl/
T:  +31 610271479       F:  +31 204416173



More information about the Pythonmac-SIG mailing list