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