Ok, pushed as requested.<div><br></div><div>Gonzalo<br><div><br><div class="gmail_quote">On Mon, Sep 3, 2012 at 8:52 AM,  <span dir="ltr"><<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Gonzalo Odiard <<a href="mailto:godiard@gmail.com">godiard@gmail.com</a>><br>
<br>
Signed-off-by: Gonzalo Odiard <<a href="mailto:gonzalo@laptop.org">gonzalo@laptop.org</a>><br>
Acked-by: Simon Schampijer <<a href="mailto:simon@laptop.org">simon@laptop.org</a>><br>
---<br>
 src/sugar3/mime.py | 12 +++++++++++-<br>
 1 file changed, 11 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/sugar3/mime.py b/src/sugar3/mime.py<br>
index 07d085e..70b4d2b 100644<br>
--- a/src/sugar3/mime.py<br>
+++ b/src/sugar3/mime.py<br>
@@ -25,6 +25,8 @@ import os<br>
 import logging<br>
 import gettext<br>
<br>
+from gi.repository import GdkPixbuf<br>
+<br>
 from sugar3 import _sugarbaseext<br>
<br>
 _ = lambda msg: gettext.dgettext('sugar-base', msg)<br>
@@ -35,6 +37,14 @@ GENERIC_TYPE_AUDIO = 'Audio'<br>
 GENERIC_TYPE_VIDEO = 'Video'<br>
 GENERIC_TYPE_LINK = 'Link'<br>
<br>
+<br>
+def _get_supported_image_mime_types():<br>
+    mime_types = []<br>
+    for image_format in GdkPixbuf.Pixbuf.get_formats():<br>
+        mime_types.extend(image_format.get_mime_types())<br>
+    return mime_types<br>
+<br>
+<br>
 _extensions = {}<br>
 _globs_timestamps = []<br>
 _generic_types = [<br>
@@ -51,7 +61,7 @@ _generic_types = [<br>
     'id': GENERIC_TYPE_IMAGE,<br>
     'name': _('Image'),<br>
     'icon': 'image-x-generic',<br>
-    'types': ['image/png', 'image/gif', 'image/jpeg'],<br>
+    'types': _get_supported_image_mime_types(),<br>
 },<br>
 {<br>
     'id': GENERIC_TYPE_AUDIO,<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.7.11.4<br>
<br>
</font></span></blockquote></div><br></div></div>