[wp-trac] [WordPress Trac] #35725: Add WebP support.

WordPress Trac noreply at wordpress.org
Thu May 6 00:59:25 UTC 2021


#35725: Add WebP support.
-------------------------------------------------+-------------------------
 Reporter:  markoheijnen                         |       Owner:
                                                 |  adamsilverstein
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  5.8
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:
  tests needs-dev-note dev-feedback              |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 Found an endless loop in `wp_getimagesize()`:

 1. Use a system that does not have native WebP support in PHP and does not
 have the `exif` PHP extension.
 2. Run core tests for the `image` group: `composer test -- --group image`.
 3. Enter the endless loop :)

 This happens because `wp_getimagesize()` now [source:trunk/src/wp-
 includes/media.php?rev=50815&marks=5024#L5017 calls wp_get_image_mime()],
 which in turn [source:tags/5.7.1/src/wp-
 includes/functions.php?marks=3054-3056#L3044 calls wp_getimagesize()
 again] if `exif_imagetype()` is not available.

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


More information about the wp-trac mailing list