#!/usr/bin/python # # A small Python script to list the file formats GdkPixbuf supports. import gtk for format in gtk.gdk.pixbuf_get_formats(): print '%s: ' % format['name'] print ' description: %s' % format['description'] print ' mime_types:' for mime_type in format['mime_types']: print ' %s' % mime_type print ' extensions: %s' % ' '.join(format['extensions']) print ' is writable: %s' % format['is_writable'] print