This is a feature request.
Would it be possible to add class method to Vips that would return an array of supported file formats akin to $ vips -l foreign does? Having such introspection would allow to programmatically decide if for example Vips supports any given format for transformation operation.
If there already exists a way how to get list of Vips' supported extensions, I'm all ears.