dm_gm_get_dimensions Function

public function dm_gm_get_dimensions(path, width, height) result(rc)

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.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: path

Image file path.

integer, intent(out) :: width

Image width.

integer, intent(out) :: height

Image height.

Return Value integer


Calls

proc~~dm_gm_get_dimensions~~CallsGraph proc~dm_gm_get_dimensions dm_gm_get_dimensions proc~dm_file_exists dm_file_exists proc~dm_gm_get_dimensions->proc~dm_file_exists proc~dm_is_error dm_is_error proc~dm_gm_get_dimensions->proc~dm_is_error proc~dm_pipe_close dm_pipe_close proc~dm_gm_get_dimensions->proc~dm_pipe_close proc~dm_pipe_open dm_pipe_open proc~dm_gm_get_dimensions->proc~dm_pipe_open proc~dm_pipe_read dm_pipe_read proc~dm_gm_get_dimensions->proc~dm_pipe_read c_pclose c_pclose proc~dm_pipe_close->c_pclose proc~dm_pipe_connected dm_pipe_connected proc~dm_pipe_close->proc~dm_pipe_connected c_popen c_popen proc~dm_pipe_open->c_popen proc~dm_pipe_open->proc~dm_pipe_connected c_fread c_fread proc~dm_pipe_read->c_fread