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?".
I'm not a bash or PHP expert, but I think you need to tell it this is a single command, not a number of commands. For a bash script, you need a "\" character at the end of each line except the last.
You realise, I suppose, that if you successfully run the command twice, you will get a load of weird images in the same directory.
Thanks for your help, the server made a request. I have another question: Why the query is not removed the original image? I have four thumbnails and full size image...
You did not tell it to delete the originals only the cloned copies of the original. Add -delete 0--2 (I think) before the output or before -scene 1. That way you save the output and delete all the original input images.