make images with python

Steve Holden steve at holdenweb.com
Sun Aug 26 22:16:11 EDT 2007


Lawrence D'Oliveiro wrote:
> In message <mailman.2012.1187186603.22759.python-list at python.org>, Boris
> Borcic wrote:
> 
>> Lawrence Oluyede wrote:
>>
>>> stefano <ssalvatori at gmail.com> wrote:
>>>> I need make some images using python but i'm lost :P
>>> <http://www.pythonware.com/products/pil/>
>>>
>> If you want to do antialiased drawings into images,
>> you might rather want to look for pil at
>>
>> http://effbot.org/downloads/
>>
>> and grab PIL together with the aggdraw extension
>> (while "core" PIL includes some drawing primitives,
>> last time I tried they weren't antialiased).
> 
> I see that PIL supports image resizing
> <http://www.pythonware.com/library/pil/handbook/image.htm> with filters
> that can be used for antialiasing. So just do all your drawing at, say,
> 200% scale, then downsample with Image.resize to antialias.

That certainly worked very well for rendering text.

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------




More information about the Python-list mailing list