From owner-freebsd-questions Sat Mar 22 1:48:15 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC34E37B404 for ; Sat, 22 Mar 2003 01:48:14 -0800 (PST) Received: from foem.leiden.webweaving.org (fia224-72.dsl.hccnet.nl [62.251.72.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43C0E43F93 for ; Sat, 22 Mar 2003 01:48:10 -0800 (PST) (envelope-from dirkx@webweaving.org) Received: from foem (foem [10.11.0.2]) by foem.leiden.webweaving.org (8.12.6/8.12.6) with ESMTP id h2M9m8LG069385; Sat, 22 Mar 2003 10:48:08 +0100 (CET) (envelope-from dirkx@webweaving.org) Date: Sat, 22 Mar 2003 10:48:08 +0100 (CET) From: Dirk-Willem van Gulik X-X-Sender: dirkx@foem.leiden.webweaving.org To: Brian Henning Cc: freebsd Subject: Re: convert to jpegs In-Reply-To: Message-ID: <20030322104439.R74106-100000@foem.leiden.webweaving.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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