ImageMagick supports a lot of input file formats, and Glide will very happily pass them through so long as the output format is something sensible. But currently Statamic will block unknown formats in two places:
Statamic\Tags\Glide::isResizable() where the extension is checked
Statamic\Imaging::validateImage() where the mime type is checked
If you tweak these methods it's possible to convert all sorts with the glide tag.
Many of the formats ImageMagick supports require additional software on the server (like Ghostscript for PDFs) so it probably wouldn't be sensible to add every single one to these methods, but perhaps a new config option could be added where you can list additional formats you'd like to be allowed, something like:
ImageMagick supports a lot of input file formats, and Glide will very happily pass them through so long as the output format is something sensible. But currently Statamic will block unknown formats in two places:
Statamic\Tags\Glide::isResizable()
where the extension is checkedStatamic\Imaging::validateImage()
where the mime type is checkedIf you tweak these methods it's possible to convert all sorts with the glide tag.
Many of the formats ImageMagick supports require additional software on the server (like Ghostscript for PDFs) so it probably wouldn't be sensible to add every single one to these methods, but perhaps a new config option could be added where you can list additional formats you'd like to be allowed, something like: