read_ppm Subroutine

public subroutine read_ppm(path, img, w, h, ok)

Read a binary PPM (P6, maxval 255) as written by pdftoppm.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: path
integer(kind=1), intent(out), allocatable :: img(:)
integer, intent(out) :: w
integer, intent(out) :: h
logical, intent(out) :: ok