extractChannel
does not preserve 16-bit image data intact.
#3453
Labels
Milestone
extractChannel
does not preserve 16-bit image data intact.
#3453
Version
Sharp 0.31.2.
Environment
Input
A horizontal 4-pixel 8-bit RGBA PNG image of a gradation from black to white, from left to right.
Bug
This works fine.
If you add
.extractChannel(0)
, the significant bytes are cut off.The expected behavior
Adding
.extractChannel(0)
should be doing nothing here.The text was updated successfully, but these errors were encountered: