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

WordPress Trac noreply at wordpress.org
Tue Dec 3 04:50:48 UTC 2024


#62285: HDR AVIF is corrupt in the media library (encoded as SDR)
--------------------------+------------------------------
 Reporter:  gregbenz      |       Owner:  adamsilverstein
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  6.8
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by kirasong):

 Replying to [comment:3 adamsilverstein]:
 > cc: @kirasong  who added the original depth limiting code.

 Thanks so much for the ping!
 I love changes like this to help folks' images look their best.

 Yes, it's my recollection that it was done for the purpose of file size.

 This was a long time ago, but I also have a suspicion that a bit depth of
 some sort needs to be set for resizing to work properly on various
 versions of Imagick.

 I think it's a great idea to set it to the same bit depth as the source
 image, and when I was looking, it seems that was my preference 9 years ago
 (wow, it's been some time!).
 [https://core.trac.wordpress.org/ticket/33642#comment:33]

 I also see @joemcgill dug into this, and might remember more details on
 the specifics.

 He noted that at the time, it `seem[ed] to be the default way a few image
 editors (including Photoshop) handle optimizing images for web (even
 PNG24s).`
 https://core.trac.wordpress.org/ticket/33642#comment:36

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


More information about the wp-trac mailing list