[pygtk] reading svgz files with gdk pixbuf
Matthias B.
msbREMOVE-THIS at winterdrache.de
Wed Sep 15 01:43:20 WST 2010
Hi,
is there a special trick to reading compressed svgz images?
gtk.gdk.pixbuf_get_formats() lists svgz (image/svg+xml-compressed)
among the supported formats, but gtk.gdk.pixbuf_new_from_file() gives me
glib.GError: Couldn't recognize the image file format for file
'deck9.svgz'
When I uncompress the file, reading works fine. So it seems that either
the list from gtk.gdk.pixbuf_get_formats() is wrong or
something in gtk.gdk.pixbuf_new_from_file().
MSB
--
Either start working for a better future
or stop complaining about the bad present.
More information about the pygtk
mailing list