Closed
Description
In order to pass the correct options before the Image::newFromFile
operation, the vips_foreign_find_load
will come in handy to determine the image format.
Example:
The page property works only for PDFs, TIFFs, and multi-size ICOs (or any other image that has more than one page). But doesn't work for a JPEG (it will fail with the error: Message: jpegload: no property named 'page'
). In order to pass the page property to the correct loader we can check first with vips_foreign_find_load
if the operation permits a page property.