Stripping sRGB profile from PNGs in python
Laura Creighton
lac at openend.se
Thu Jul 23 14:16:46 EDT 2015
To scale images, you should get Pillow, which can construct new images
based on old ones for arbitrary size. see:
http://pillow.readthedocs.org/en/latest/reference/Image.html
Pillow is a fork of PIL. PIL isn't being maintained, Pillow is.
Note that reading this is a good idea:
http://united-coders.com/christian-harms/image-resizing-tips-every-coder-should-know/
It even has some code that you can probably use, though I haven't tested it.
It just, ah, looks right. :)
Laura
More information about the Python-list
mailing list