Uses GraphicsMagick to read the image file extension (jpg,
png, ...). On error, the string file_format is allocated but
empty.
The function returns the following error codes:
E_IO if execution of GraphicsMagick failed.E_NOT_FOUND if image does not exist.E_READ if reading dimensions failed.| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | path |
Image file path. |
||
| character(len=:), | intent(out), | allocatable | :: | extension |
Image file extension. |