-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
image/gif: encoded images incompatible with some viewers #26108
Comments
Hi @powerman . I think that your problem is similar to this one. Imagemagick tools works fine with this image. Am i right, that all of this viewers is based on gtk library? |
Thanks @minaevmike, you probably right, it's the same issue. I didn't tried every viewer, but from two tried by geeqie author one doesn't use GTK:
So, while it looks like there is a bug in gdk-pixbuf, and probably a bug in some basic library used by xloadimage, still, it doesn't looks like a good idea to have image/gif generate files which can't be read by noticeable amount of existing viewers (all based on GTK plust all based on same basic lib as used by xloadimage, at least - to me this sounds "noticeable amount"). I'm pretty sure it is possible to generate gif files in some other way, more usual for all these viewers, because all(?) other non-Go tools which create gif files doesn't have this issue. |
No idea. With no information about the actual issue, it's hard to do anything useful. |
I believe this is the same issue as #33748. See this comment and ones below it that explain why this is happening. |
Change https://golang.org/cl/354710 mentions this issue: |
What version of Go are you using (
go version
)?go version go1.10.3 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
Just gif.Decode and then gif.Encode: https://play.golang.org/p/AMc63K13IHZ
What did you expect to see?
Encoded image must be valid.
What did you see instead?
Some image viewers and browsers show encoded image correctly, some (gqview, geeqie, qiv, xloadimage…) show broken image.
More details with attached image examples are here: BestImageViewer/geeqie#621
The text was updated successfully, but these errors were encountered: