[magick-users] Batch convert...

Chris.Lehr at vitale.com Chris.Lehr at vitale.com
Mon Jan 26 18:40:20 PST 2004


Thanks Kevin - I opted for this DOS (dont make fun of me) batch script:
 
FOR /F "delims=." %%k IN ('dir /b .\*.tif') DO (
"c:\program files\ImageMagick-5.5.7-Q8\convert" -resize 600x800 %%k.tif %%k.jpg
rem del %%k.tif
)

	-----Original Message----- 
	From: Kevin Oberman [mailto:oberman at es.net] 
	Sent: Mon 1/26/2004 8:31 PM 
	To: Lehr, Chris 
	Cc: magick-users at imagemagick.org 
	Subject: Re: [magick-users] Batch convert... 
	
	

	> Date: Mon, 26 Jan 2004 14:11:14 -0500
	> From: <Chris.Lehr at vitale.com>
	> Sender: magick-users-bounces at imagemagick.org
	>
	> Trying to do something like:
	>
	> "c:\program files\ImageMagick-5.5.7-q8\convert.exe" -resize 600x800
	> *.tif *.jpg
	>
	> And it results in
	>
	> Unable to open file (*.jpg.0)   (ten times)
	>
	> What am I missing?
	
	convert(1) does not support operations on multiple files. You want to
	use mogrify.
	--
	R. Kevin Oberman, Network Engineer
	Energy Sciences Network (ESnet)
	Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
	E-mail: oberman at es.net                  Phone: +1 510 486-8634
	




More information about the Magick-users mailing list