how to convert all files in given folder to different type

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
manit
Posts: 123
Joined: 2009-01-30T22:31:26-07:00

how to convert all files in given folder to different type

Post by manit »

I tried
convert.exe e:\*.png e:\*.jpg
Error: cannot find *.png.
I think I am not using the correct wild card character.
What should be command for converting all png files to jpg in e:\.
Last edited by manit on 2009-06-28T21:13:03-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: how to convert all files in given folder to different type

Post by fmw42 »

manit wrote:I tried
convert.exe e:\*.png e:\*.jpg
Error: cannot find *.png.
I think I am not using the current wild card character.
What should be command for converting all png files to jpg in e:\.

use mogrify in stead of convert

see http://www.imagemagick.org/Usage/basics/#mogrify
Post Reply