*BSD News Article 79123


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!news.kei.com!news.mathworks.com!news-peer.gsl.net!news.gsl.net!portc01.blue.aol.com!newsstand.cit.cornell.edu!news.acsu.buffalo.edu!acsu.buffalo.edu!pleung
From: pleung@cs.buffalo.edu (Patrick Leung)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Making thumbnail images under FreeBSD ?
Date: 25 Sep 1996 00:04:37 GMT
Organization: University at Buffalo
Lines: 31
Message-ID: <529sul$gtn@prometheus.acsu.buffalo.edu>
References: <529gq7$682@vixen.cso.uiuc.edu> <529ore$glp@hamilton.maths.tcd.ie>
NNTP-Posting-Host: yeager.cs.buffalo.edu
NNTP-Posting-User: pleung
X-Newsreader: TIN [version 1.2 PL2]

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