summaryrefslogtreecommitdiff
path: root/trunk/scripts/list-gdkpixbuf-formats
blob: d29b14b3601c8a7b93fc9fd9e77d3ffca5cac0ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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