[wp-trac] [WordPress Trac] #62285: HDR AVIF is corrupt in the media library (encoded as SDR)

WordPress Trac noreply at wordpress.org
Thu Apr 24 13:19:44 UTC 2025


#62285: HDR AVIF is corrupt in the media library (encoded as SDR)
-------------------------------------------------+-------------------------
 Reporter:  gregbenz                             |       Owner:
                                                 |  adamsilverstein
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.8
Component:  Media                                |     Version:  4.5
 Severity:  major                                |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit      |     Focuses:
  has-dev-note                                   |
-------------------------------------------------+-------------------------
Changes (by gregbenz):

 * severity:  normal => major


Comment:

 This issue is not resolved in WP 8.6.

 The sourceHDR.avif test image in the ZIP at the top of this ticket will be
 transcoded to SDR when uploading to WP 8.1 in an environment with
 ImageMagick (the full size shows as HDR since it avoids transcoding, but
 all others will be incorrect.

 The uploaded result has 2 bugs:
 - loss of HDR (10-bit becomes 8-bit, this bug)
 - and the color profile is stripped (resulting in significant color error
 / desaturation as P3 is treated as sRGB, bug
 https://core.trac.wordpress.org/ticket/60889)

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


More information about the wp-trac mailing list