WP_Image_Editor should provide a query_formats function.
|Reported by:||dan.rossiter||Owned by:|
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.