Closed ghost closed 1 year ago
Would be great to get a small sample image and have a test for it.
@zerolab test added!
@stanpresshook thanks a lot for this, the code looks good to me but the test is currently failing. Please could you look into that, I'd be happy to merge this once it's fixed!
closing in favour of #123 (which rebases on main
and tidies up the code). Thanks @stanpresshook
Summary
This PR fixes issue #106 where PNG writing fails if the image is in mode CMYK.
Fix
Add check following the same format as
save_as_jpeg
where we convert the image toRGB
mode if the current mode isCMYK