Error : Unsupported marker type
Opened this issue · 4 comments
I got error "Unsupported marker type" when I try to open photos taken by my new phone, this is a simple.
https://user-images.githubusercontent.com/7871070/28070025-26867f24-667e-11e7-9ae7-a80290b0c0ff.jpg
I have googled it but got nothing.
This is really weird. I am able to open the image just fine if I use
GdkPixbuf.Pixbuf.new_from_file("path_to_image")
but not if I do
loader = GdkPixbuf.PixbufLoader()
with open("path_to_image", "rb") as f:
loader.write(f.read())
loader.close()
This looks like a bug in the PixbufLoader class to me.
https://bugzilla.gnome.org/show_bug.cgi?id=768639 seems like the same problem, the bug report hasn't had any activity in quite a while though.
I don't want to drop using the loader as it allows asynchronous loading but if I find some type of workaround I will definitely implement it. Should probably report upstream in some way as well.
How about use the first one if the loader don't work? It would make vimiv usable before upsteam fix the bug.
As mentioned before, I do not want to drop the loader completely as it allows async loading of images which is especially useful for large gif files.
The commit linked above hopefully fixes this using a rather ugly wrapper...
I just mean that. I tried it and it works very fine, thanks. 😄