-
Notifications
You must be signed in to change notification settings - Fork 18k
image/gif: Decode(All) replacing transparent background of frame with black #7993
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
Labels
Milestone
Comments
Owner changed to @nigeltao. Status changed to Accepted. |
Not to say nGsYOhn.gif isn't corrupt but I see similar black pixelization occurs with http://thechive.files.wordpress.com/2014/05/tumblr_n2gyjqaxz81s8ve6co1_500.gif. Also since you mentioned image corruption, ubuntu's default Image Viewer(3.10.2) actually refuses to display, and ubuntu(14.04) showing thumbnails, for any of the gifs after they have been read then written by image/gif. I don't know if this is directly related to the black instead of transparent coloring, or not. Both Firefox and chrome will display this image/gif written images. Attachments:
|
I forked the standard image/gif package and fixed these bugs myself but unfortunately it required breaking the GIF struct contract (changing *image.Paletted to *image.RGBA). This means that the writer.go code no longer compiles, so in my fork I just removed it since I didn't need it. Perhaps this change wasn't strictly necessary but it did resolve a few bugs I was banging my head against the wall with. Please see my work here: https://github.com/JamesDunne/go-util/tree/master/imaging/gif If anything, it could serve as a baseline for correcting the standard image/gif implementation. I have tested it extensively on my own library of animated GIFs so I know it's good. |
CL https://golang.org/cl/138600043 mentions this issue. |
This issue was closed by revision 0be3176. Status changed to Fixed. |
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jun 25, 2018
palette. Fixes golang#7993. LGTM=r R=r CC=golang-codereviews, james.jdunne https://golang.org/cl/138600043
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jul 9, 2018
palette. Fixes golang#7993. LGTM=r R=r CC=golang-codereviews, james.jdunne https://golang.org/cl/138600043
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jul 30, 2018
palette. Fixes golang#7993. LGTM=r R=r CC=golang-codereviews, james.jdunne https://golang.org/cl/138600043
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Attachments:
The text was updated successfully, but these errors were encountered: