[EMAIL PROTECTED] wrote:
> I have to convert 120 tiffs to jpegs, while changing the color 
> space to srgb. Is there a way to do this as a batch process 
> rather than one at a time?

The 'convert' program that is part of the ImageMagick suite is a 
batch-oriented, command-line tool for this sort of transformation.
If you're using Linux, obtaining that and getting it running should
be trivial; I don't know for sure how much or how little headache
installation is under Windows or MacOS -- it _should_ be trivial
there as well but I haven't done it myself, as I do 99.5% of my
command-line stuff in Linux (and lately more than 70% of my GUI
tasks as well, but that's subject to phase-of-moon fluctuations,
sunspots, and which house Mercury is in).

<http://www.imagemagick.org/script/convert.php>

It looks like[*] it'd be:

        foreach foo (*.tif)
           convert $foo -colorspace SRGB `basename $foo .tif`.jpg
           end

in csh/tcsh (under Linux or MacOS) -- someone else would have to give 
you the sh/bash/ksh syntax.  If a Windows "command prompt" window still 
works the way I'm used to, you might get away with simply:

        convert *.tif -colorspace SRGB *.jpg

there, depending on just how 'native' the Windows port of ImageMagick
is.  (If it acts more like a Unix program trying to cope with a Windows
environment, instead of acting like an MS-DOS program, then it might 
be easier to do "dir /w > temp.bat" and then edit temp.bat to be a
hundred and twenty 'convert' commands, unless you already have Cygwin
installed, in which case you can just fire up a bash or tcsh window
under Windows.)

                                        -- Glenn

[*] Caveat:  I've never used the -colorspace option to 
'convert', so I'm not 100% certain I've understood this 
right.  But "-convert SRGB" didn't give me an error message 
when I tried it on one file just now, so it at least does 
_something_ ...

-- 
PDML Pentax-Discuss Mail List
[email protected]
http://pdml.net/mailman/listinfo/pdml_pdml.net

Reply via email to