Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to programmatically create image

I'm looking for a way to create a graphics file (I don't really mind the file type, as they are easily converted).

The input would be the desired resolution, and a list of pixels and colors (x, y, RGB color).

Is there a convenient python library for that? What are the pros\cons\pitfalls?

like image 301
Adam Matan Avatar asked Oct 18 '25 23:10

Adam Matan


1 Answers

PIL is the canonical Python Imaging Library.

Pros: Everybody wanting to do what you're doing uses PIL. 8-)

Cons: None springs to mind.

EDIT: in the future, we use Pillow -- the fork of PIL.

like image 77
RichieHindle Avatar answered Oct 21 '25 14:10

RichieHindle



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!