[wp-meta] [Making WordPress.org] #7460: Use Imagick/ImageMagick instead of GD for the photo directory

Making WordPress.org noreply at wordpress.org
Fri Feb 9 18:36:38 UTC 2024


#7460: Use Imagick/ImageMagick instead of GD for the photo directory
-----------------------------+--------------------
 Reporter:  desrosj          |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:
Component:  Photo Directory  |   Keywords:
-----------------------------+--------------------
 I noticed recently that a photo I submitted to the directory had less
 vibrant colors than the version I originally uploaded.

 I can't say with 100% certainty, but based on the metadata in the
 generated image files, it seems that w.org is using GD to process images
 and not `Imagick/ImageMagick`. For example, looking at the metadata for
 [https://pd.w.org/2024/02/86565be41d811edb2.64704135-rotated.jpeg this
 image] which is generated from the original, there is a `comment` metadata
 field with the value of `CREATOR: gd-jpeg v1.0 (using IJG JPEG v62),
 quality = 82`.

 The [https://pd.w.org/2024/02/86565be41d811edb2.64704135.jpeg original
 image] was created using an iPhone and has the `Display P3` color profile.
 In my testing, Imagick/ImageMagick preserves this profile when generating
 subsizes, thus preserving the original colors. GD however does not and
 instead assigns an `sRGB` color profile, causing the image to lose some of
 it's vibrancy.

 The iPhone has used the [DCI-P3 Display P3 profile (one that builds off of
 DCI-P3) since iPhone 7]. So it's highly likely a high percentage of the
 images in the photo directory are suffering from a loss of color quality
 when compared to how the contributor submitted them originally. In
 general, GD is also known for producing images of lesser quality than
 ImageMagick and having some odd nuances in handling color profiles.

 Would it be possible to use ImageMagick for the Photo Directory to better
 preserve the original colors in the submitted photos? And if so, would it
 be possible to regenerate the images uploaded so far in order to correct
 any loss of color caused to date due to switching color profiles?

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/7460>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list