*BSD News Article 79659


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!uwm.edu!news-peer.gsl.net!news.gsl.net!news.sgi.com!news.mathworks.com!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!uknet!warwick!qmw!news
From: scott@dcs.qmw.ac.uk (Scott Mitchell)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Making thumbnail images under FreeBSD ?
Date: 01 Oct 1996 08:52:25 GMT
Organization: Queen Mary & Westfield College, London, UK
Lines: 55
Message-ID: <SCOTT.96Oct1095225@crux.dcs.qmw.ac.uk>
References: <529gq7$682@vixen.cso.uiuc.edu> <529ore$glp@hamilton.maths.tcd.ie>
	<529sul$gtn@prometheus.acsu.buffalo.edu>
NNTP-Posting-Host: crux.dcs.qmw.ac.uk
In-reply-to: pleung@cs.buffalo.edu's message of 25 Sep 1996 00:04:37 GMT

In article <529sul$gtn@prometheus.acsu.buffalo.edu> pleung@cs.buffalo.edu (Patrick Leung) writes:

> From: pleung@cs.buffalo.edu (Patrick Leung)
> Newsgroups: comp.unix.bsd.freebsd.misc
> Date: 25 Sep 1996 00:04:37 GMT
> Organization: University at Buffalo
> NNTP-Posting-User: pleung
> 
> David Malone (dwmalone@maths.tcd.ie) wrote:
> : dannyman@arh0135.urh.uiuc.edu (Dannyman) writes:
> 
> : >	gfxcon then took the image and saved a scaled gif fitting wihin 92
> : >x 92 pixels.
> 
> : >	Pretty good, but what Unix programs exist for me to do the same?
> : >(Or do I have to figure a way to send the jobs to my Amiga?)
> 
> : You want ImageMagick from the ports collection. mogrify will do what you
> : want. ( There is an extensive manual page ).
> 
> : 	David.
> 
> 
> xloadimage -xzoom 45 -yzoom 60 waterfall.jpeg -dump jpeg new_waterfall.jpeg
> 
> the dump option, tells xloadimage to dump it into a file instead
> of the screen.
> 
> 
> In your case,
> #calculate x and y percentage to zoom
> 
> $x = (width_in_pixels_of_image / 92.0) * 100
> $y = (height_in_pixels_of_image /92.0) * 100
> xloadimage -xzoom $x -yzoom $y $pic -dump jpeg $new_pic
> 
> 
> hope this helps,
> Patrick

If you have bunch of images to do, there is always pnmindex (part of
the netpbm port).  It creates thumbnails of a group of images and
combines them into a single big image.  Of course you have to convert
everything to PNM first but otherwise it works fine, and even labels
the thumbnails.

Cheers,

	Scott

-- 
===========================================================================
 Scott Mitchell, CompSci Dept, Queen Mary & Westfield College, London, UK
       mailto:scott@dcs.qmw.ac.uk   http://www.dcs.qmw.ac.uk/~scott
            finger scott@ruby.dcs.qmw.ac.uk for PGP public key