You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sharp() constructor for raw pixel input has no colorspace parameter — blocks CMYK raw roundtrip #4521
When constructing a Sharp instance from a raw pixel buffer, there is no way to declare the colorspace of those bytes. The raw input option only accepts { width, height, channels, depth? }. Four-channel raw input is always interpreted as RGBA, making it impossible to feed modified CMYK raw bytes back into Sharp for re-encoding as a CMYK JPEG.
What are you trying to achieve?
This blocks any workflow that needs to: decode a CMYK image → manipulate individual channel values in JS → re-encode as CMYK JPEG, without a lossy sRGB round-trip.
When you searched for similar feature requests, what did you find that might be related?
Issue #3620 fixed the pipelineColorspace CMYK roundtrip in v0.32.1, which is related but does not address raw input colorspace declaration.
Also saw #3789
Activity