Uses GraphicsMagick to determine the dimensions of the image at given path. On error, width and height are 0.
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. |
||
integer, | intent(out) | :: | width |
Image width. |
||
integer, | intent(out) | :: | height |
Image height. |