[wp-trac] [WordPress Trac] #26737: WP_Image_Editor should provide a query_formats function.

WordPress Trac noreply at wordpress.org
Sun Dec 29 00:12:21 UTC 2013


#26737: WP_Image_Editor should provide a query_formats function.
-----------------------------+-----------------------------
 Reporter:  dan.rossiter     |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Media            |    Version:
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 In developing one of my plugins, I've had to circumvent the lack of a
 function in WP_Image_editor to list supported extensions. Although support
 is provided for checking whether a specific mime type is supported, this
 is not sufficient in some instances.

 Implementation of such a feature in both of the inheriting classes
 (Imagick and GD) would be trivial since in Imagick the function could
 simply return Imagick::queryformats() and for GD a static array containing
 JPG, PNG, and GIF could be returned.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26737>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list