I am converting some jpg images to png w/ imagemagick & have the following in perl:
system("convert $jpg $png");
print "$?\n";
Is there a way to capture the actual errors from imagemagick (rather than just whether or not it executed successfully as I have in the code above)?
note: I use imagemagick solely as an example....this is more a general question on how to capture errors from whatever program that system() executes.
thx!