can verbose output be saved to an error log - shell php

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
tobycarr

can verbose output be saved to an error log - shell php

Post by tobycarr »

Hi,
I am running imagemagick from php as shell commands i.e. using exec function.
I would like to be able to see all imagemagick errors but can't see how. Is there a way if verbose is specified that the verbose comments can be saved off to a log file that I can read?
Or perhaps another way to do this?
From within php would be preferable..off to text file I can read outside.
Thanks
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: can verbose output be saved to an error log - shell php

Post by fmw42 »

I don't know much about doing it in PHP, but from the command line this seems to work:

echo "$(convert rose.png -verbose info:)" > rose_verbose.txt
tobycarr

Re: can verbose output be saved to an error log - shell php

Post by tobycarr »

Thanks very much - this works from within php.
Anyone else's tips on logging the running and errors i.e. general comments and debugging of imagemagick shell commands from within php ??
ta
Post Reply