Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Mar 2003 10:48:08 +0100 (CET)
From:      Dirk-Willem van Gulik <dirkx@webweaving.org>
To:        Brian Henning <b1henning@hotmail.com>
Cc:        freebsd <freebsd-questions@FreeBSD.ORG>
Subject:   Re: convert to jpegs
Message-ID:  <20030322104439.R74106-100000@foem.leiden.webweaving.org>
In-Reply-To: <OE680IDT8zAJ95sZKxt000008ae@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Thu, 20 Mar 2003, Brian Henning wrote:

> i have a bunch of files of different image formats that i would like to
> convert to jpeg. is there a command line converter to be able to do them
> all in one shot? maybe with xv or xnview?

ImageMagic is one route; the URT or netPBM toolkit the other. With the
latter two you can do

	for i.tiff in *
	do
		j=`basename $i .tiff`
		cat $i tifftopnm | pnmscale 0.5 | cjpeg > $j.jpg
	done

and so on. Combined URT and NetPBM support just about any format.

The Utah Raster Toolkit (urt) is a bit more advanced and very suitable for
scientific work where values and geoms are important; for visual work
netpbm is just fine.

Dw.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030322104439.R74106-100000>