From owner-freebsd-questions Tue Sep 19 16:54:25 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta01-svc.ntlworld.com (mta01-svc.ntlworld.com [62.253.162.41]) by hub.freebsd.org (Postfix) with ESMTP id C45F837B424 for ; Tue, 19 Sep 2000 16:54:21 -0700 (PDT) Received: from parish ([62.255.97.7]) by mta01-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000919235415.CRCD16640.mta01-svc.ntlworld.com@parish>; Wed, 20 Sep 2000 00:54:15 +0100 Received: (from mark@localhost) by parish (8.11.0/8.11.0) id e8JNrxN18503; Wed, 20 Sep 2000 00:53:59 +0100 (BST) (envelope-from mark) Date: Wed, 20 Sep 2000 00:52:38 +0100 From: Mark Ovens To: Siegbert Baude Cc: freebsd-questions@freebsd.org Subject: Re: Making thumbnail images Message-ID: <20000920005238.C257@parish> References: <39BC0225.520792D6@wiegand.org> <20000910220540.0E43D137@woodstock.monkey.net> <20000911000556.B255@parish> <20000911004241.N77593@strontium.scientia.demon.co.uk> <39BC30A9.7F9DC536@wiegand.org> <20000911201122.B254@parish> <39C78E68.C415985C@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <39C78E68.C415985C@gmx.de>; from siegbert.baude@gmx.de on Tue, Sep 19, 2000 at 06:03:52PM +0200 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Sep 19, 2000 at 06:03:52PM +0200, Siegbert Baude wrote: > Mark Ovens wrote: > > For an example of how simple the programming for this is take a look > > at the bottom of http://people.freebsd.org/~nik/Oxford/ OK, I know > > it's a csh(1) script, but converting it to sh(1) should be easy > > enough. > > % 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 > > Is there any special reason, why you chose GIF in the end for the > thumbnails? Normally photos should have better quality if saved as > JPGs, shouldn't they?. Color control to stay within the same 128 > choosen before? Never tried this with JPGs before, is it impossible > there? > No idea. Look at the URL, it isn't my script, it's Nik's :) > Just curious and for sure OT ;-) > > Ciao > Siegbert > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- 4.4 - The number of the Beastie ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message