Skip to content

Conversation

nagix
Copy link
Collaborator

@nagix nagix commented Mar 14, 2018

Problem

PngDescriptor.getBackgroundColorDescription() always returns null even if TAG_BACKGROUND_COLOR has some value. This is because the code checks the TAG_COLOR_TYPE value, but it exists in the different directory (PNG-IHDR).

Solution

Return the description based on the length of the byte array. I also added a few tests for PngDescriptor.

@drewnoakes drewnoakes merged commit 7080a13 into drewnoakes:master Mar 19, 2018
@drewnoakes
Copy link
Owner

Great, 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.

2 participants