Hw can i return image magick error

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
dt59
Posts: 63
Joined: 2017-07-25T23:57:06-07:00
Authentication code: 1151

Hw can i return image magick error

Post by dt59 »

Code: Select all

exec("magick img1.png -font bitchcakes.ttf -pointsize 50 -gravity center -fill #a1dbe0 -annotate +0+0 'a' -fill #d1d7d4 -annotate +2+2 'Anthony' -fill #e3e8e5 -annotate +3+1 'Anthony resultimage.png",$outp, $return);

if ($return == "0") { echo '<br>Image generation sucssesful<br>'; } 
else { echo '<br>Image generation failed<br>'; } 
i will want to show the error that occur while generating image to help carry out debugging effectively, any idea on hw to do that?
Post Reply