How can I make the images so that appengine doesn't transparent to black when resized?
I am on google appengine and am trying to resize images. I AM:
from google.appengine.api import images
image = images.resize(contents, w, h)
And for some images, I get a nice transparent size, while others get a black background.
How do I preserve transparency for all images?
- Original: http://www.stdicon.com/g-flat/application/pgp-encrypted
- Black: http://www.stdicon.com/g-flat/application/pgp-encrypted?size=64
- Original: http://www.stdicon.com/gartoon/application/rtf
- Black: http://www.stdicon.com/gartoon/application/rtf?size=64
- Original: http://www.stdicon.com/nuvola/application/x-debian-package
- Transparent: http://www.stdicon.com/nuvola/application/x-debian-package?size=64
+2
source to share
3 answers
An article on this issue: http://doesnotvalidate.com/2009/resizing-transparent-images-with-django-pil/ Google code patch: http://code.google.com/p/sorl-thumbnail/issues/ detail? id = 56
0
source to share