Skip to content

feat: support CMYK color mode#228

Closed
quarksb wants to merge 0 commit intoAgamnentzar:masterfrom
quarksb:master
Closed

feat: support CMYK color mode#228
quarksb wants to merge 0 commit intoAgamnentzar:masterfrom
quarksb:master

Conversation

@quarksb
Copy link
Contributor

@quarksb quarksb commented Feb 25, 2025

test psd file Archive.zip

@quarksb quarksb closed this Feb 25, 2025
@Agamnentzar
Copy link
Owner

CMYK color support is mostly done, there's just an issue with converting CMYK to RGB, I tried implementing standard conversion (see cmykToRgb()) function but it turns out it gives completely different results than in photoshop. I think to get correct conversion it would have to apply proper color profile which is really complicated. If you just need to get bitmap data for CMYK format I think I can enable it easily, but it would only work with imageData: true option, and you wouldn't be able to get canvases.

@Agamnentzar
Copy link
Owner

You can enable CMYK loading if you add ColorMode.CMYK to supportedColorModes array in psdReader.ts

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