Skip to content

Port of #325 from Java #182

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

Merged
merged 3 commits into from
Jul 18, 2019
Merged

Port of #325 from Java #182

merged 3 commits into from
Jul 18, 2019

Conversation

kwhopper
Copy link
Collaborator

Port of drewnoakes/metadata-extractor#325 :

"Problem:
PngDescriptor.GetBackgroundColorDescription() always returns null even if "TagBackgroundColor" has some value. This is because the code checks the "TagColorType" value, but it exists in the different directory (PNG-IHDR).

Solution:
Return the description based on the length of the byte array."

@drewnoakes
Copy link
Owner

Would you be able to port the corresponding unit tests too?

https://github.com/drewnoakes/metadata-extractor/pull/325/files#diff-57f370cfb4dbb3759bf55d89f8982333

@kwhopper
Copy link
Collaborator Author

Done, and pushed

@drewnoakes drewnoakes merged commit c1483ec into drewnoakes:master Jul 18, 2019
@kwhopper kwhopper deleted the PngDescriptor_backgroundcolor branch July 18, 2019 14:02
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.

2 participants