POV-Ray : Newsgroups : povray.animations : ImageMagic batch convert syntax? Server Time
28 Jul 2024 16:18:38 EDT (-0400)
  ImageMagic batch convert syntax? (Message 1 to 3 of 3)  
From: Steve
Subject: ImageMagic batch convert syntax?
Date: 14 Feb 2000 19:31:41
Message: <slrn8ah6ki.289.sjlen@zero-pps.localdomain>
Hi all

I've been battling all day trying to get the batch convert
syntax right for ImageMagic for Linux.

I've tried what looks obvious from the docks such as 

$ convert strobe*.png PPM:strobe*.ppm
$ convert strobe???.png ppm:strobe???ppm

the input section works but the output doesn't.

I've tried a bash script found in a book 'Running
Linux, O'reilly'.

The syntax they give is as follows character for 
character:

for i in *.bmp
do
convert $i xpm:'basename $i .bmp' .xpm
done

I've put my own file types in and file names etc, and
tried many variations on this theme but nothing seems
to work, at one point it completely filled the HD which
has 2G free space on it, other times it'll say input file
not found etc, etc.  

I'd be grateful if anyone could come up with a solution, I'm
even considering getting the old version on Megapov and 
rerendering the whole 216 frames in the correct format, 
the photons in 0.4 are totally different, it only took 5
days to render last time. 


-- 
Cheers
Steve              email mailto:sjl### [at] ndirectcouk

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.ndirect.co.uk/~sjlen/

or  http://start.at/zero-pps

 12:00am  up 11:03,  5 users,  load average: 1.25, 1.07, 1.10


Post a reply to this message

From: Peter Popov
Subject: Re: ImageMagic batch convert syntax?
Date: 15 Feb 2000 00:38:46
Message: <ouKoON6D=NmusjrAAl=Z7M47gKtn@4ax.com>
On 14 Feb 2000 19:31:41 -0500, sjl### [at] ndirectcouk (Steve) wrote:

>
>Hi all
>
>I've been battling all day trying to get the batch convert
>syntax right for ImageMagic for Linux.

Steve,

try this:

for i in *.bmp; do convert $i `basename $i bmp`xpm; done

It worked here. And mind the backticks.


Peter Popov
pet### [at] tagpovrayorg
ICQ: 15002700


Post a reply to this message

From: Steve
Subject: Re: ImageMagic batch convert syntax?
Date: 15 Feb 2000 16:45:01
Message: <slrn8aijje.35v.sjlen@zero-pps.localdomain>
On Tue, 15 Feb 2000 07:36:59 +0200, Peter Popov <pet### [at] usanet> wrote:
>On 14 Feb 2000 19:31:41 -0500, sjl### [at] ndirectcouk (Steve) wrote:
>
>>
>>Hi all
>>
>>I've been battling all day trying to get the batch convert
>>syntax right for ImageMagic for Linux.
>
>Steve,
>
>try this:
>
>for i in *.bmp; do convert $i `basename $i bmp`xpm; done

Thanks Peter, it worked.  The main thing I got wrong was I 
was changing basename to the name of the files ie strobe02
as the files went from strobe02000 to strobe02216.png.

One to be stored in the useful.doc.
-- 
Cheers
Steve              email mailto:sjl### [at] ndirectcouk

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.ndirect.co.uk/~sjlen/

or  http://start.at/zero-pps

 12:52pm  up 23:55,  4 users,  load average: 1.20, 1.09, 1.05


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.