Skip to content

Conversation

@Etienne-Gautier
Copy link
Contributor

Context

Some files are failing with KeyError: b'Rd ' when parsing colors, this is due to the RGB components being encoded differently as floats (from 0 to 1) and under a different key in the descriptor. I have attached an example (in zip below).
weird-rgb-encoding-2.PSD.zip.

This PR adds support for RGB colors encoded as floats

@kyamagu
Copy link
Contributor

kyamagu commented Jan 17, 2023

LGTM, thanks

@kyamagu kyamagu merged commit 34a6905 into psd-tools:main Jan 17, 2023
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