H
H
hardwellZero2015-05-22 11:47:17
Python
hardwellZero, 2015-05-22 11:47:17

How to make a small image editor?

Hello, Toaster ;)
Now I'm working on my small project of a graphical image editor in Python.
For this, Google suggested that the PIL library would do, installed it, and played around with it.
Now I'll tell you what I would like to see in the editor, and you tell me where to dig about this.
- opening an image
- overlaying one image on the second
- all sorts of modifications with the image that is superimposed (resizing, rotating, moving)
After overlaying, I made this:

from PIL import Image
back = Image.open("back.jpg")
# back.show()
tatoo = Image.open("tatoo.png")
# tatoo.show()

back.paste(tatoo, (0,0), tatoo)
back.save("back_with_tatoo.jpg", "JPEG")

Two pictures are loaded here (hereinafter binding to the PyQt interface and loading on button click) and the second is adjusted to the first (the second will always be .png)
What do I need to look at now to implement all this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2015-05-22
@hardwellZero

You need to read the documentation for Pil(Pillow): Pillow . It has all the modifications that you wrote. There are filtering methods, there are methods for improving images, there are ways to apply text, and so on.
For GUI implementation, there is documentation for PyQt5 , PyQt4 . Examples for displaying images are easily found in the search engine: Displaying images in QLabel .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question