IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
now when I type echo $PATH I get: /usr/local/Cellar/ghostscript/9.18/bin/
however it still won't convert pdfs and I get the same error message:
convert: no images defined `WORK.jpg' @ error/convert.c/ConvertImageCommand/3252.
However when I use exec( 'gs -sDEVICE=jpeg -o TEST.jpg -dFirstPage=1 -dLastPage=1 -dNOPAUSE -dJPEGQ=100 -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -r150 -dUseCropBox -dUseTrimBox TinyPDF3.pdf'); I get a pdf.
I do think your right that it's a path issue but I don't understand why after all this it can't find the path.