Questions tagged [PIL] (36)

1
answer

The library is PIL with JPEG support under Snow Leopard?

The problem is the following: do not put PIL with support for JPEG. The libjpeg library installed via macport:sudo python setup.py build running build running build_py running build_ext — using frameworks at /System/Library/Frameworks — PIL 1.1.7 SETUP SUMMARY — version 1.1.7 platform darwin 2.7 (r27:82508, Jul 3 2010, 2...
minnie.Heller asked October 14th 19 at 10:26
2
answers

How to take a screenshot with the task of the coordinates of the mouse with python?

Use PIL, python 3.3, Win7. While do it this way:img = ImageGrab.grab( (x1, y1, x2, y2) ) The question is, how to specify the coordinates of the mouse, rather than manually set in the script? Ie when the script asks "Select an area", I point to the upper left and lower right corner of the required region, the script makes a ...
Jamie_Kub asked September 28th 19 at 00:36
0
answer

How to install tEXtComment inside a PNG file using PYTHON PIL?

In the file format PNG, GIF, TIFF, JPG and some others have the ability to add text labels inside the file. In the libraries PIL and PILLOW for Python functions to work with such marks are not discovered. There are functions to read EXIF tags (PIL.ExifTags.TAGS) and info (PIL.image.info). Last, it seems, is exactly what you...
tyrique.Rodriguez13 asked September 21st 19 at 05:00
3
answers

How to find the object in the image using python?

Hello! I take part in the Moscow Olympiad and is currently faced with unprecedented challenges. The fact that the following problem (the third) is completely different from what is usually given at the Olympics on sports programming: the input contains a thousand images format .gif, on which is painted a circle, square or ...
Erich5 asked September 20th 19 at 16:34
2
answers

How to reduce weight the created images in PIL?

Writing for the utilitarian needs of a simple script for PIL (pillow). The essence of the script: creates a picture with a resolution of 540*960. The picture tri - color, single color background, and the second digit line, the third color - the other figures. The second series of numbers is arbitrary (see picture). Picture ...
Jamel.Hudson24 asked September 19th 19 at 12:38
2
answers

What is open source project for image processing in php or python?

I've got a task to write a service for image processing - statics for a site with a large attendance and a large kolichesvo photos. Known open source projects for image processing in php or pyhton? Tasks: - upload several fotografi at a time; - to make miniatures under the specified dimensions, and assign specific names; to...
cicero_Leffler93 asked September 18th 19 at 20:14
1
answer

How to insert an image into the windows clipboard using python 3.4?

How can I insert an image (e.g., obtained in PIL, or just the final image from folder) to the windows clipboard using a script? There is a script which generates the image. You need to got to the windows clipboard. Upd.: I use python 3.4
Jamel.Hudson24 asked September 18th 19 at 12:38
1
answer

How to make a small image editor?

Good day, Toaster ;) Now working on a small project graphic image editor in Python. To do this, Google suggested that will fit the PIL library, installed it, played around with it. Now I tell what I would like to see in the editor, and You tell me where to dig for this reason. - opening image - overlaying of one image on t...
Nicholas.Schinner asked September 16th 19 at 19:16
1
answer

How to rotate rectangle at the radian?

Hi all. On the canvas draws a rectangle by means of python + pil. Known in advance the dimensions and the coordinates of the center point. based on this, I get him drawing coordinates, i.e. x1,y1,x2,y2 But the task still includes the ability to turn it on radian relative to the center. How can I do this?
Kathryne_Schulist71 asked September 15th 19 at 14:24
3
answers

Why when you display the same color images on different output?

The picture is uploaded using the libraries tkinter and PIL. Handlers color. The second display is lighter than the first. What is causing this?gameSpace = Canvas(top, width=1000, height=600, bg = "lightblue", cursor = "circle") gameSpace.pack() openImg=Image.open("example.png") image=ImageTk.PhotoImage(openImg) imgSprite=...
Alessia_Konopels asked September 11th 19 at 20:05