Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-03-2017, 02:09 AM   #1
maggch
Junior Member
maggch began at the beginning.
 
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?
maggch is offline   Reply With Quote
Advert
Old 01-03-2017, 08:53 AM   #2
knc1
Ex-Helpdesk Addict
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 13,157
Karma: 13444445
Join Date: Feb 2012
Location: Central Texas
Device: No PW2, KV, KOA
Quote:
Originally Posted by maggch View Post
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?
What makes you think it is a glib error and not a missing PyGTK extension library error?
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)
knc1 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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
Native 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


All times are GMT -4. The time now is 02:42 PM.


MobileRead.com is a privately owned, operated and funded community.