[wp-trac] [WordPress Trac] #39331: unsharpMaskImage in Imagick's thumbnail_image is not compatible with CMYK jpegs.

WordPress Trac noreply at wordpress.org
Mon Dec 19 15:31:12 UTC 2016


#39331: unsharpMaskImage in Imagick's thumbnail_image is not compatible with CMYK
jpegs.
--------------------------+-----------------------------
 Reporter:  gitlost       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.5
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 This has been split off from #39216.

 The use of `Imagick::unsharpMaskImage()` in
 `WP_Image_Editor_Imagick::thumbnail_image()` on jpegs with CMYK color
 spaces results in mangled images, eg black text becomes fuzzy and over-
 black, and colors change. The attached patch just doesn't call it if the
 image has a CMYK color space.

 The unit test requires the attached "test_cmyk.jpg" to be uploaded to the
 test data images directory (which is actually the "full" jpeg produced by
 `WP_Image_Editor_Imagick` when processing the "test_cmyk.pdf" PDF uploaded
 to #39216).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39331>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list