Verbose problem
-
- Posts: 24
- Joined: 2012-01-10T05:19:23-07:00
- Authentication code: 8675308
Verbose problem
I use ImageMagick in command line and send the commands from php. Can anybody tell'me why I can not catch the -verbose -deskew message? (in command line works ) . Also, the info: message works. Thank you.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Verbose problem
try adding 2>&1 after the output
<?php
exec("convert -verbose input -deskew 40 output 2>&1",$out,$returnval);
foreach($out as $text)
{echo "$text<br>";}
?>
<?php
exec("convert -verbose input -deskew 40 output 2>&1",$out,$returnval);
foreach($out as $text)
{echo "$text<br>";}
?>