I'm running two different versions because I want to test the syntax and the image file. My goal is to use the script eventually.

The convert command in cygwin doesnt work either.
The error message is the same "unable to open image '/cygdrive/c/ebe_theo/1.jpg' no such file or directory.
So could it be something wrong about the whole package and not just the script? I have downloaded the lastest IM-cygwin.gz file.

In Windows CMD the convert command runs fine with the same image file.

Nothing wrong with running different versions. I run about ten different versions (different Q numbers, with/without HDRI, v6 or v7, with/without modules). They all work fine under CMD or bash. But I don't understand why you run one under CMD and a different one under bash.

uni wrote:I have downloaded the lastest IM-cygwin.gz file.

What is this? Where did you get it?
Does IM work at all for you under bash? Try basic tests like:

Ah, I didn't know there was an official IM Cygwin package. It makes sense to have one, for the Cygwin installer to use, but I don't know if it differs from the normal Windows distribution.

Many commands and scripts operate on only one file at a time. You can put it inside a shell "for" loop for all the files in a directory, perhaps including subdirectories. IM won't create directories, so you should do that in your script.