[wp-trac] [WordPress Trac] #54039: site health can probably do better job at detecting if imagick supports PDF

WordPress Trac noreply at wordpress.org
Tue Aug 31 18:46:23 UTC 2021


#54039: site health can probably do better job at detecting if imagick supports PDF
-------------------------+------------------------------
 Reporter:  mark-k       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by nosilver4u):

 Indeed, one can use the queryFormats() method to check which file types
 are supported. We use this in EWWW IO for several mime types:
 https://github.com/nosilver4u/ewww-image-
 optimizer/blob/46fc90569822e4ef04cfaf792423911738d6dad9/common.php#L3246

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


More information about the wp-trac mailing list