[wp-trac] [WordPress Trac] #60628: Issues with avif image imagecreatefromavif not working. Resizing not possible.

WordPress Trac noreply at wordpress.org
Fri Oct 11 22:39:25 UTC 2024


#60628: Issues with avif image  imagecreatefromavif not working. Resizing not
possible.
-------------------------------------------+------------------------------
 Reporter:  neo2k23                        |       Owner:  adamsilverstein
     Type:  defect (bug)                   |      Status:  assigned
 Priority:  normal                         |   Milestone:  6.7
Component:  Media                          |     Version:  6.5
 Severity:  normal                         |  Resolution:
 Keywords:  avif has-patch has-unit-tests  |     Focuses:
-------------------------------------------+------------------------------

Comment (by adamsilverstein):

 @neo2k23 - I tried improving detection in https://github.com/WordPress
 /wordpress-develop/pull/7465, if possible can you try testing that PR?

 @skithund In my PR, I tried detecting support the same way you wrote the
 test, however I'm a little concerned about this bit from the
 [https://www.php.net/manual/en/function.imageavif.php docs] for
 `imageavif`:
 **Caution**
 ''However, if libgd fails to output the image, this function returns true.
 ''
 None of our test environments have GD with AVIF support as far as I can
 tell. I may need to adjust my PR to try to favor GD for this test as
 Imagick is favored when it supports AVIF.

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


More information about the wp-trac mailing list