vimiv icon indicating copy to clipboard operation
vimiv copied to clipboard

Error : Unsupported marker type

Open 22dm opened this issue 8 years ago • 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.

22dm avatar Jul 11 '17 13:07 22dm

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.

karlch avatar Jul 11 '17 20:07 karlch

How about use the first one if the loader don't work? It would make vimiv usable before upsteam fix the bug.

22dm avatar Jul 12 '17 00:07 22dm

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...

karlch avatar Jul 13 '17 14:07 karlch

I just mean that. I tried it and it works very fine, thanks. 😄

22dm avatar Jul 16 '17 05:07 22dm