Answer the question
In order to leave comments, you need to log in
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")
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question