[wp-trac] [WordPress Trac] #60889: wide gamut AVIF is desaturated (retagged as sRGB on upload)

WordPress Trac noreply at wordpress.org
Wed Apr 3 15:55:42 UTC 2024


#60889: wide gamut AVIF is desaturated (retagged as sRGB on upload)
--------------------------+------------------------------
 Reporter:  gregbenz      |       Owner:  adamsilverstein
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by gregbenz):

 Hi @adamsilverstein-

 - The difference is obvious to me visually. You can also confirm details
 with exiftool by extracting the metadata with the command of the form
 "exiftool -a -u -g1:3 -w txt testImage.avif" and look at the Color
 Primaries (around line 35 or so).

 - I don't see a simple way to upload / test via instawp.io.

 - When I change my site to use GD, I also see failure. I'll attach that
 result as well for reference.

 The issue to me appears that an sRGB tag was simply re-assigned to the
 image without changing the numerical data, resulting in loss of saturation
 in the rendered image. Had the image actually been properly converted to
 sRGB, the result would be that the test image would only reduce the
 saturation of the swatches using the full P3 range (ie 6 swatches would
 look like 3 after conversion to sRGB, as that would simply clip the
 colors). Conversion to sRGB would also be an incorrect result, but I
 mention it as it may point to the root issue involving some request in the
 code to simply assign a color space tag (via NCLX in this case).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60889#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list