Date: Sun, 19 Mar 2000 09:54:43 -0600 (CST) From: "Rev. Nostrebor N. Cire" <spock@spock.mem.net> To: Mark Ovens <mark@dogma.freebsd-uk.eu.org>, spock@mem.net Cc: freebsd-questions@freebsd.org Subject: Re: Command line image manipulation Message-ID: <200003191554.JAA27054@smith.spock.mem.net>
index | next in thread | raw e-mail
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 <mark@dogma.freebsd-uk.eu.org> 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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003191554.JAA27054>
