473,703 Members | 2,064 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

make images with python

I need make some images using python but i'm lost :P

i need some module to make .png (with drawline, drawcircle, drawpoint
etc etc etc )

like gd for php :P

thants :D

Aug 15 '07 #1
4 1829
stefano <ss********@gma il.comwrote:
I need make some images using python but i'm lost :P
<http://www.pythonware. com/products/pil/>

--
Lawrence, oluyede.org - neropercaso.it
"It is difficult to get a man to understand
something when his salary depends on not
understanding it" - Upton Sinclair
Aug 15 '07 #2
Lawrence Oluyede wrote:
stefano <ss********@gma il.comwrote:
>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).

Best, BB

Aug 15 '07 #3
In message <ma************ *************** ************@py thon.org>, Boris
Borcic wrote:
Lawrence Oluyede wrote:
>stefano <ss********@gma il.comwrote:
>>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.htmwith filters
that can be used for antialiasing. So just do all your drawing at, say,
200% scale, then downsample with Image.resize to antialias.
Aug 25 '07 #4
Lawrence D'Oliveiro wrote:
In message <ma************ *************** ************@py thon.org>, Boris
Borcic wrote:
>Lawrence Oluyede wrote:
>>stefano <ss********@gma il.comwrote:
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.htmwith 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 -------------

Aug 27 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2099
by: Andreas Volz | last post by:
Hi, I used SGMLParser to parse all href's in a html file. Now I need to cut some strings. For example: http://www.example.com/dir/example.html Now I like to cut the string, so that only domain and directory is left over. Expected result:
6
8503
by: rzed | last post by:
I'm using PIL to generate some images which may be rotated at the user's option. When they are rotated, the original image is cropped in the new image (which is fine), and the corners are black (which is not, in this case). I can't find any documented way to change the default fill color (if that's what it is) for the corners, and PIL also doesn't seem to support a flood fill. I have created a flood fill in Python, which works but which...
2
3177
by: dr_tyson | last post by:
I am trying to embed images into a wxPython app (created using Boa Constructor), but have not been able to do so. I know how to embed plots, but images seem to be a problem. I've tried using code analogous to the example given at the Matplotlib website to no avail. If anybody has been successful at this could you please post some sample code? That would be greatly appreciated. Thanks! Randy
15
4467
by: Thomas W | last post by:
How can I use python to find images that looks quite similar? Thought I'd scale the images down to 32x32 and convert it to use a standard palette of 256 colors then compare the result pixel for pixel etc, but it seems as if this would take a very long time to do when processing lots of images. Any hint/clue on this subject would be appreciated. Best regards, Thomas
0
1715
by: Daniel Nogradi | last post by:
Hi all, Last time I checked PIL was not able to apply lossless transformations to jpeg images so I've created Python bindings (or is it a wrapper? I never knew the difference :)) for the jpegtran utility of the Independent Jpeg Group. The jpegtran utility is written in C and is very efficient, fast and robust. It can rotate, flip, transpose and transverse jpeg images in a lossless way, see www.ijg.org for more details.
6
5368
by: lanwrangler | last post by:
I know it's a long shot but does anyone have any pointers to generic algorithms - or, even better, Python code - for comparing images and computing a value for the "difference" between them? What I want to do is to compare two bitmap images (taken from a webcam, so I'll likely be using PIL) and get some idea of the "difference" between them so I can tell if something in the image has changed, eg, a person has entered the field of view. ...
0
1790
by: wbsmith | last post by:
hello all, i am using python (2.5) with the PIL (latest release), and i am trying to read in these 3-d tiff images we have. basically, i am following some example code that iterates through the images in the 3-d tiff file like this: import Image
2
10122
by: defn noob | last post by:
from Tkinter import * import os master = Tk() w = Canvas(master, width=800, height=600) print os.path.exists('C:/me/saftarn/desktop/images/blob4.jpg') im = PhotoImage(file = 'C:/users/saftarn/desktop/images/blob4.jpg') #im = file = 'C:/users/me/desktop/images/blob4.jpg'
2
2853
tharden3
by: tharden3 | last post by:
Ok, I've been going through these tutorials for both PyGame and wxPython, but I've hit a big speed bump. In each tutorial, I've gotten to the point where I need to "import" or "load" images for various purposes (animation, icons, etc.). Each time I follow the tutorial, I can't quite get it right... please don't tell me "Hey, you can't use the pictures in the tutorial example because those are not the directories, paths, or pics that are on your ...
1
8993
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7842
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6583
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5919
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4416
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4674
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2419
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2049
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.