Syntax for output filenames

Hello to everybody...

I have spent very long time on this before I decided to sign up in this forum.
Maybe I've just not used the right keywords. I have to say that I'm not a programmer or something like that...

I've been playin' around a little with ImageMagick and I would like to have multiple files (in one folder) being processed and saved with their original filename to a subfolder.

In 'Terminal' I used the following command:

convert <options> *.png subfolder/???????????

I have no idea what syntax I have to use, to keep the original filenames.

I've tried , *., and many more but wasn't successful.

Anyone an idea?

Thanks in advance
Ralf

ls *.png | while read a
do
convert <options> $a subfolder/${a##*/}
done

wow... thanx so much. works smooth... you made my day :wink:

by the way... also got a different way:

convert *.png <options> -set filename:base '%[base]' 'subfolder/%[filename:base].png'

maybe interesting for you :wink:

cheers
ralf

Lol i don't need it but maybe some other do !
Thx for them