Skip to content

CMYK images are rendered with inverted colors #22375

Closed
@ioweb-gr

Description

@ioweb-gr

Preconditions (*)

  1. Magento 2.3.1
  2. ImageMagick as image processor
  3. One CMYK image

Steps to reproduce (*)

  1. Install Magento 2.3.1 and use ImageMagick as image processor.
  2. Create a product and upload an image in CMYK color profile.
  3. The image displays properly in backend in product edit page because it shows the original image.
  4. Check the product in frontend and notice that the image is resized via ImageMagick but the colors are inverted.

Expected result (*)

  1. The image displays properly would be ideal but at least the user should be warned that the image is saved in a color space that Magento 2 cannot handle so it will not be be converted correctly.

Actual result (*)

  1. Image is resized but the colors are inverted.
    image

Unfortunately the users of an eshop are not usually proficient in the handling of apps like photoshop and they will probably upload lots of images they downloaded from the web or from their providers. Thus it's very possible that they will encounter situations like this.

I think the system should at least warn them that it cannot process the image correctly if it can't handle the conversion.
Perhaps Imagick::transformImageColorspace could be used to handle it silently?

Here's a sample image
madrid-orange_1_1

Metadata

Metadata

Assignees

Labels

Component: Framework/ImageFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentProgress: doneReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions