Only file extension is used to detect mimetype
If you have a PNG file named
foo.jpg it will simply fail to load instead of detecting the correct mimetype.
This should be easy to do given
g_content_type_guess() (and GdkPixbuf probably has something to handle this).
If nobody else handles this I can probably find some time to look into it myself.