-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query Supported Image Formats #255
Comments
Hello @olivervogel, The libvips way is to use gobject introspection to find this. You walk the class hierarchy below You can do this at the CLI with eg.:
In php-vips, you'd call |
Thanks @jcupitt Could you show me some more details. I can't currently figure out how to get results with |
Sorry, not found the time to make some example code yet. |
Is there a way to list or query the supported image formats at runtime? Something along the lines of Imagick::queryFormats() at Imagick.
At the moment I get by by creating a temporary 1x1 image and trying to encode it into the format to check. However, this does not seem to be very resource-friendly.
Also see Intervention/image-driver-vips#17
The text was updated successfully, but these errors were encountered: