Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get image from ImageDraw in PIL?

I am using PIL for my project and I have ImageDraw object. I want to get the image that is drawn on ImageDraw object. How do I get the image ?

like image 955
Nikhil Ashodariya Avatar asked Apr 19 '17 03:04

Nikhil Ashodariya


1 Answers

It's simply:

original_image = edited_image._image

The im object gets passed into ImageDraw, then gets saved into the class variable _image. That's about it.

like image 111
Lafftar Avatar answered Oct 23 '22 00:10

Lafftar