[wp-trac] [WordPress Trac] #54476: Improve image engine detection when output format adjusted with filter (example: WebP output)

WordPress Trac noreply at wordpress.org
Fri Sep 30 17:37:35 UTC 2022


#54476: Improve image engine detection when output format adjusted with filter
(example: WebP output)
-------------------------------------+------------------------------
 Reporter:  adamsilverstein          |       Owner:  adamsilverstein
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  6.1
Component:  Media                    |     Version:  5.8
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------------

Comment (by adamsilverstein):

 [attachment:"Monosnap Site Health - Info ‹ wpdev build — WordPress
 2022-09-30 11-31-48.jpg"]  shows my site health screen after applying the
 shim.

 Testing in trunk, output files were JPEG, and Imagick was the chosen
 editor.

 Testing after [attachment:"54476.4.diff"] WebP image generation works as
 expected. `_wp_image_editor_choose` prefers the editor that supports both
 the input and output mime types - GD in this case, instead of picking the
 first editor that supports the input type (Imagick in this case).

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


More information about the wp-trac mailing list