Skip to content
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

Change GifHeaderDirectory.TAG_TRANSPARENT_COLOR_INDEX to TAG_BACKGROUND_COLOR_INDEX #142

Merged
merged 2 commits into from Feb 3, 2016

Conversation

nagix
Copy link
Collaborator

@nagix nagix commented Jan 30, 2016

GifHeaderDirectory class has TAG_TRANSPARENT_COLOR_INDEX tag, but its value is read from the Background Color Index field in the GIF header. The tag name should be TAG_BACKGROUND_COLOR_INDEX. This closes #141.

…ND_COLOR_INDEX

GifHeaderDirectory class has TAG_TRANSPARENT_COLOR_INDEX tag, but its value is read from the Background Color Index field in the GIF header. The tag name should be TAG_BACKGROUND_COLOR_INDEX. This corresponds to the issue drewnoakes#141.
@drewnoakes
Copy link
Owner

Thanks for this PR. Can you keep the old constant available too, but marked as obsolete? I don't like when updates cause users to experience compiler errors (but warnings about obsoletion are fine).

Also, do you have a plan to implement a method for extracting metadata from the Image Blocks, Graphic Control Extensions, Comment Extension, Plain Text Extension and Application Extension?

Can you also take a look at this?

@nagix
Copy link
Collaborator Author

nagix commented Feb 2, 2016

Marked the old constant TAG_TRANSPARENT_COLOR_INDEX as deprecated. I will work on the other blocks and extensions when I have spare time.

drewnoakes added a commit that referenced this pull request Feb 3, 2016
Change GifHeaderDirectory.TAG_TRANSPARENT_COLOR_INDEX to TAG_BACKGROUND_COLOR_INDEX
@drewnoakes drewnoakes merged commit d9737bd into drewnoakes:master Feb 3, 2016
@drewnoakes
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GifHeaderDirectory.TAG_TRANSPARENT_COLOR_INDEX should be TAG_BACKGROUND_COLOR_INDEX
2 participants