[Pythonmac-SIG] PIL gui with Panther python?
Michael Hudson
mwh at python.net
Mon Jul 12 15:05:09 CEST 2004
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...
Cheers,
mwh
--
Just point your web browser at http://www.python.org/search/ and
look for "program", "doesn't", "work", or "my". Whenever you find
someone else whose program didn't work, don't do what they
did. Repeat as needed. -- Tim Peters, on python-help, 16 Jun 1998
More information about the Pythonmac-SIG
mailing list