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?".
As I'm using the Lasso language (a kind of PHP like) I would like to log if errors occur to handle them. What is the best way to do it ? I tried to add -debug with no success
Does anyone know if there is something similar for ColdFusion? I'm using cfexecute to call ImageMagick, and for the life of me, I can't get it to output to the screen or a logfile for anything other than the identify command. If I try the same code that shows the details of the image from "identify", it doesn't work for convert. I've tried to add -debug "All", and even the method you suggested above (2>error.txt). I've also tried to add a <cfsavecontent> around the cfexecute, and add both a variable and output file option to the cfexecute. Nothing seems to be working.
My main problem is that if for some reason ImageMagick errors, I'll have no way of knowing in Coldfusion, aside from the fact that the image will never get converted. Does anyone have any suggestions? Thanks in advance.
Cool, thanks. That definitely pointed me in the right direction. The only problem was that I needed to add -verbose to it in order for anything to show up on the screen. It looks like -report-warnings is stopping for problems that I don't want it to stop for, though, and images that once came out fine, are now reporting errors. Getting there.. slowly but surely....
So after some more testing, I realized yet another problem with ColdFusion. When I run the below command in an actual command line, I get the following results:
I also get a perfectly converted image (or at least as far as I can tell). However, when I use the EXACT same line as a cfexecute in ColdFusion, here is what I get:
The main difference I'm seeing here is that with ColdFusion it returns the "bad image". Additionally, no image is actually produced. It seems to be the "echo" that's doing the damage. I think ColdFusion is treating it as some sort of break in the operation, and it never lets the process finish. If I take out the echo and leave in -regards-warnings, it completes fine. However I have no idea if there's any actual warnings now.
Aside from the obvious problem here with echo, my main problem aside from all of this is that the images that have problems for me (which i mentioned in another topic about paths and image darkening) don't even report a warning that there's something wrong when I run the convert in the actual command line prompt and not ColdFusion. So even if this were to work, it almost seems pointless because if I'm doing a batch conversion, I'll never know if there's a problem without inspecting each image... or at least so it seems.