Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Mar 2000 16:04:58 +0000
From:      Mark Ovens <mark@ukug.uk.freebsd.org>
To:        spock@mem.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Command line image manipulation
Message-ID:  <20000319160458.C234@parish>
In-Reply-To: <200003191554.JAA27054@smith.spock.mem.net>; from spock@spock.mem.net on Sun, Mar 19, 2000 at 09:54:43AM -0600
References:  <200003191554.JAA27054@smith.spock.mem.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 19, 2000 at 09:54:43AM -0600, Rev. Nostrebor N. Cire wrote:
> 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?
> 

Sorry, I thought that they are ports but I've just checked and they
aren't, well not individual ports anyway. I suspect that they are
part of some graphics port.

Maybe you should email nik@freebsd.org and ask him as Nik (Clayton) as
the guy who did the page I pointed you to.

HTH.

> % 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

-- 
Seminars, n.:
       From "semi" and "arse", hence, any half-assed discussion.
________________________________________________________________
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://ukug.uk.freebsd.org/~mark/
mailto:mark@ukug.uk.freebsd.org             http://www.radan.com



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?20000319160458.C234>