You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to get the image types an Imagine instance supports?
I would think of a method ImagineInterface::supportedTypes(): array that should return an array of mime types.
Additionally, a method ImagineInterface::supports($mime_type): boolean would be nice to check if a certain mime type is supported.
Or is there already another way to this? The only thing I see are private functions with hardcoded type lists (e.g. in Imagine\Imagick\Image there is a private function getMimeType($format) containing a static types array, but there's no way to read it out).
The implementation in the Imagine adapters could rely on:
imagetypes() for GD
Gmagick::queryformats() for Gmagick
Imagick::queryFormats() for Imagick
The text was updated successfully, but these errors were encountered:
Is there a way to get the image types an Imagine instance supports?
I would think of a method
ImagineInterface::supportedTypes(): array
that should return an array of mime types.Additionally, a method
ImagineInterface::supports($mime_type): boolean
would be nice to check if a certain mime type is supported.Or is there already another way to this? The only thing I see are private functions with hardcoded type lists (e.g. in
Imagine\Imagick\Image
there is a private functiongetMimeType($format)
containing a static types array, but there's no way to read it out).The implementation in the Imagine adapters could rely on:
imagetypes()
for GDGmagick::queryformats()
for GmagickImagick::queryFormats()
for ImagickThe text was updated successfully, but these errors were encountered: