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
I did see a new getSupportedFormats was added. Which I think is a great addition. I'm not sure if we should go with a general supportedFormats. As from my point of view there are 2 supportedFormats methods needed. One for inputFormats so which format I can in general read with that adapter and on for outputFormats which formats I can output. Example depending on the installed imagemagick libraries I can also read adobe files but can not output them, same for other vector files like svg can be read but not outputted
Why we should implement something like this. As example I have the imagine imagick and imagine vips adapter installed. For all things I want to use the vips adapter aslong as the vips adapter support the specific inputFormat -> outputFormat if not I will fallback to the imagick adapter which supports more formats.
Another usecase is I want to use SVGImagine adapter to convert resize svg -> svg but when I need to convert svg->png I want to use the Imagick adapter.
The text was updated successfully, but these errors were encountered:
Yep, that'd be nice, but I don't think it's possible. For example, we know the formats supported by Imagick by using the Imagick::queryFormats() method, which doesn't give details about encoding/decoding capabilities...
Description
I did see a new
getSupportedFormats
was added. Which I think is a great addition. I'm not sure if we should go with a generalsupportedFormats
. As from my point of view there are 2 supportedFormats methods needed. One forinputFormats
so which format I can in general read with that adapter and on foroutputFormats
which formats I can output. Example depending on the installed imagemagick libraries I can also read adobe files but can not output them, same for other vector files like svg can be read but not outputtedExample Interface changes:
Why?
Why we should implement something like this. As example I have the imagine imagick and imagine vips adapter installed. For all things I want to use the
vips
adapter aslong as thevips
adapter support the specificinputFormat
->outputFormat
if not I will fallback to theimagick
adapter which supports more formats.Another usecase is I want to use SVGImagine adapter to convert resize
svg
->svg
but when I need to convertsvg
->png
I want to use the Imagick adapter.The text was updated successfully, but these errors were encountered: