Page 1 of 1

Save multiple files keeping filenames

Posted: 2010-03-22T04:56:23-07:00
by TSchlaier01
Hi

I can't find a solution in the official documentation to convert a folder of images saving every single file with the same filename as before (maybe with a suffix).
convert *.jpg *.jpg doesn't work.

Thanks for your help!

Re: Save multiple files keeping filenames

Posted: 2010-03-22T08:58:56-07:00
by fmw42
see mogrify

http://www.imagemagick.org/Usage/basics/#mogrify

I recommend creating a new folder and use -path to put all the output files into that folder so that you don't overwrite your old images with any mistakes

Re: Save multiple files keeping filenames

Posted: 2010-03-22T09:02:11-07:00
by snibgo
I don't understand what you want. "mogrify" will change files without creating new ones. Does that help?

[Cross-posted]

Re: Save multiple files keeping filenames

Posted: 2010-03-22T09:09:31-07:00
by fmw42
snibgo wrote:I don't understand what you want. "mogrify" will change files without creating new ones. Does that help?

[Cross-posted]

snibgo, perhaps I don't understand your comment?

You can add other IM options and modify the results using mogrify. For example you can resize the files or change jpg quality and have the output have the same names.

Never mind, I now see that we both cross-posted about mogrify