Save multiple files keeping filenames

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?".
Post Reply
TSchlaier01
Posts: 10
Joined: 2010-03-22T02:57:35-07:00
Authentication code: 8675308

Save multiple files keeping filenames

Post 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!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Save multiple files keeping filenames

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Save multiple files keeping filenames

Post by snibgo »

I don't understand what you want. "mogrify" will change files without creating new ones. Does that help?

[Cross-posted]
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Save multiple files keeping filenames

Post 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
Post Reply