Skip to content

Prevent sanity from converting JPEG image uploads from CMYK to sRGB #9400

Description

@donalffons

We are using Sanity for managing printed brochures and noticed the following issue: For our use case, we have certain JPEG images that have a CMYK colorspace and this colorspace must be preserved in our output. However, when I upload a CMYK JPEG image to Sanity and re-download the file, it appears that Sanity converts the uploaded image to sRGB automatically.

Is there a way to disable this conversion, while still being able to use the "image" type?

Here is the original image (the upload to Github preserves the color space)

Image

$ identify -verbose cmyk-test.jpg | grep Colorspace
  Colorspace: CMYK

Here is the image after upload to and download from sanity:

Image

$ identify -verbose cmyk-test-downloaded-from-sanity.jpg | grep Colorspace
  Colorspace: sRGB

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions