Popular recipes tagged "alpha"http://code.activestate.com/recipes/tags/alpha/popular/2010-10-28T12:03:52-07:00ActiveState Code RecipesWrite a PNG image in native Python (Python)
2010-10-28T12:03:52-07:00Campbell Bartonhttp://code.activestate.com/recipes/users/4168177/http://code.activestate.com/recipes/577443-write-a-png-image-in-native-python/
<p style="color: grey">
Python
recipe 577443
by <a href="/recipes/users/4168177/">Campbell Barton</a>
(<a href="/recipes/tags/alpha/">alpha</a>, <a href="/recipes/tags/image/">image</a>, <a href="/recipes/tags/pil/">pil</a>, <a href="/recipes/tags/png/">png</a>, <a href="/recipes/tags/save/">save</a>).
</p>
<p>This is a simple PNG writing function, intended to be as small as possible.
It only supports RGBA 32bit PNGs and the input should be a buffer of rgba bytes.</p>
<p>Tested for python 2 and 3.</p>