in reply to system call to ImageMagick with many parameters fails
What have you tried, and in what way did it fail?
Make sure to read all of the documentation about system, it talks quite a lot about error conditions and how to detect them.