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