On Fri, 19 Nov 1999, Kati Gäbler wrote:
> (...)
> Anyone knows a magic script, or unix command line that can manage this
> kind of multi-image processing, or / and if you have any tips on the
> Video --> Tiff or XCF conversion possibilities for Linux would be much
> appreciated, anything that saves me a thousand dollars on some useless
> Windoze application!

I used to do this for a whole folder of JPEGs in one commandline.
The tool I used is in NETPBM, a large collection of commandline
imageprocessing tool.
One is called `pnmscale` and can scale pmn images, read from stdin and
writes them to stdout.
Your only problem is to read in the TIFFs, convert them to pmn and pipe
them to pmnscale.
The jpeg tool `cjpeg` can then compress the images.

Maybe you can do (untestet braindump):

$ for file in `/dir/to/files/*`
> do
> echo "processing $file"
> convert $file /tmp/.img.pnm
> cat /tmp/.img.pnm | pnmscale -width 100 | cjpeg -quality 40 >  $file"_pre.jpeg"
> done


 Cheers, Martin.

          __ ___ *                       _  _
  |\/| /\ |_) |  ||\ |  |_| /\\    /|  |(_`|  |_|
  |  |/--\| \ |  || \|  | |/--\\/\/ |_ |._)|_ | |
      mailto:[EMAIL PROTECTED]
     http://freddy.rz.fh-mannheim.de/~hawlisch

Reply via email to