Date: Thu, 20 Mar 2003 19:39:47 +0200 From: "Nikolay Y. Orlyuk" <nikolay@asu.ntu-kpi.kiev.ua> To: freebsd <freebsd-questions@FreeBSD.ORG> Subject: Re: convert to jpegs Message-ID: <20030320173947.GD44631@asu.ntu-kpi.kiev.ua> In-Reply-To: <20030320163927.GA3768@babylon.polands.org> References: <OE680IDT8zAJ95sZKxt000008ae@hotmail.com> <20030320163927.GA3768@babylon.polands.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 20, 2003 at 10:39:28AM -0600, Doug Poland wrote: > On Thu, Mar 20, 2003 at 10:26:55AM -0600, Brian Henning wrote: > > Greetings, > > > > 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? > > > The port ImageMagick is your friend But it to slow. Maybe gd will be more faster. I think there is interesting which is `different image formats` I'd like such variant --cut-here-- #!/bin/sh process_dir() { for F in $1/*; do if [ -d "$F" ]; then process_dir "$F" else JF=$(echo "$F" | sed 's/\.[^\.]*$//') case "$F"; in *.gif) gif2jpg "$F" > $JF ;; *.pnm) pnm2jpg "$F" > $JF ;; *.png) png2jpg "$F" > $JF ;; esac fi done --cut-here-- or something like this > > -- With best wishes Nikolay mail: nikolay@asu.ntu-kpi.kiev.ua 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?20030320173947.GD44631>