![]() |
#1 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jan 2017
Device: kpw2
|
glib.GError: Image tpye 'png' is not supported
I learned to develop application for kindle yesterday.I used the PyGTK package here.I extract that to \extensions\python.Then I tried to develop a simple painter.however,when i want to save the image
Code:
width,height = pixmap.get_size() pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, width, height) pixbf = pixbuf.get_from_drawable(pixmap, pixmap.get_colormap(), 0, 0, 0, 0, width, height) pixbf.save('path.png','png') glib.GError: Image tpye 'png' is not supported how to make glib support png? |
![]() |
![]() |
![]() |
#2 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
What device? What firmware version? Show us a library loading trace please. (worked examples of how to get that are in the "ARMhf on Kindle" thread) |
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
svg image on top of a background png image | roger64 | ePub | 25 | 04-24-2015 11:00 AM |
Display of a png image linked to a svg image | roger64 | Editor | 6 | 03-13-2015 06:21 AM |
KindleGallery: a nice png/jpg image viewer for Paperwhite (1 & 2) and Touch | Aeris | Kindle Developer's Corner | 4 | 11-04-2013 11:36 AM |
hotlinking png image | bobcdy | Sigil | 21 | 09-21-2010 04:56 AM |
where to get autorun.xml, icon.png, key.png, lut.bin for PRS-505 | obender | Sony Reader Dev Corner | 2 | 01-25-2009 03:20 PM |