-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
4 channel LZW TIFF output returns a value of 3 for info.channels #2064
Comments
If I set the tiff compression to 'lzw', then the output saves to disk as 4-channel tiff. The returned info still has
|
The default TIFF compression setting is As you've discovered, the |
Thanks for the advice about jpeg and 3 channels. Minor brain fail on that one. Triage to bug for lzw image info appreciated. |
Fixed and tests added in commit a2314c4. This will be in v0.24.1, thanks for reporting. |
v0.24.1 now available. |
I'm trying to create a 4-channel tiff from raw pixel data. Unfortunately, when this is written to disk, the image has only 3 channels. Here's snippet using sharp 0.24.0
Issue also occurs when saving jpgs (eg
toFile('test.jpg')
). Does not occur saving pngs.I can't see anything obvious in the docs that excludes this possibility. Advice appreciated.
The text was updated successfully, but these errors were encountered: