-
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
proposal: image/gif: support writing comment extensions #67062
Comments
CC @nigeltao |
Did you mean to link to https://github.com/abergmeier/gifwriter? |
Indeed. Yeah sorry for that mistake. |
If you want to follow through with your proposal, I would advise you to a) rebase your fork so the top commit represents your diff to the standard library and b) write some documentation comments and integration tests decoding an entire image file. |
It'd be more important to reference the appropriate specs and demonstrate why this is an important addition to the standard library. |
The OP mentions both reading and writing GIF comments. It's not clear whether you are proposing to add reading, writing or both to For reading, the PNG image file format also allows for comments but For writing, similarly, I don't see evidence of overwhelming demand for this feature. But also, you may be able to do this without stdlib changes: https://nigeltao.github.io/blog/2021/from-jpeg-to-jfif.html Also, as I recently said on #67050 (comment)
|
@nigeltao Fair enough. For future transparency though, IMO it would be good to state the limitation/scope of the current stdlib implementation explicitly in the docs. |
Proposal Details
When reading, currently Golang ignores Comment Extensions.
I have a fork of image/gif in
https://github.com/abergmeier/gitwriterhttps://github.com/abergmeier/gifwriter which allows for writing Comment Extensions.If there would be some guidance I could try to integrate that into standard library.
The text was updated successfully, but these errors were encountered: