From owner-freebsd-questions Sun Mar 19 7:56:47 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smith.spock.mem.net (smith.spock.mem.net [208.233.57.196]) by hub.freebsd.org (Postfix) with ESMTP id 5E93437B5FD for ; Sun, 19 Mar 2000 07:56:37 -0800 (PST) (envelope-from spock@spock.mem.net) Received: from spock.mem.net (localhost [127.0.0.1]) by smith.spock.mem.net (8.9.3/8.9.3) with SMTP id JAA27054; Sun, 19 Mar 2000 09:54:43 -0600 (CST) (envelope-from spock@spock.mem.net) Date: Sun, 19 Mar 2000 09:54:43 -0600 (CST) Message-Id: <200003191554.JAA27054@smith.spock.mem.net> To: Mark Ovens , spock@mem.net Subject: Re: Command line image manipulation From: "Rev. Nostrebor N. Cire" X-Mailer: TWIG 2.0.3 Cc: freebsd-questions@freebsd.org Reply-To: spock@mem.net Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This will do what I need, but I can't seem to find any of the programs used in this script. Can you tell me where to find djpeg, pnmscale, ppmquantall, and ppmtogif? Do you know of a program that will convert GIF, BMP or TIFF to the format used as input to pnmscale? % foreach i (*.jpeg) foreach? setenv b `basename $i .jpeg` foreach? djpeg -pnm $i | pnmscale -width 150 > ${b}.ppm foreach? end % ppmquantall 128 *.ppm % foreach i (*.ppm) foreach? ppmtogif -interlace $i > ${b}.gif foreach? end .. % rm *.ppm Thanks for the info. Mark Ovens said: > On Sat, Mar 18, 2000 at 02:05:06PM -0600, Rev. Nostrebor N. Cire wrote: > > I would like to write a CGI script to present thumbnails of all of the > > images in an arbitrary directory, if such a program does not already > > exist. > > Take a look at http://www.freebsd.org/~nik/Oxford > > At the bottom of that page there is details of how the thumbnails in > the page were produced (using the command line). > > HTH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message