Revision: 17586
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 10, 2009 03:14 by manatlan
Initial Code
import gtk import Image def image2pixbuf(im): file1 = StringIO.StringIO() im.save(file1, "ppm") contents = file1.getvalue() file1.close() loader = gtk.gdk.PixbufLoader("pnm") loader.write(contents, len(contents)) pixbuf = loader.get_pixbuf() loader.close() return pixbuf
Initial URL
Initial Description
Initial Title
Convert pil image to gtk pixbuf
Initial Tags
image, python
Initial Language
Python