On Tue, 3 Feb 2004, Tim Hunter wrote:

> Date: Tue, 03 Feb 2004 12:30:39 -0500
> From: Tim Hunter <Tim.Hunter / sas.com>
> Newsgroups: comp.lang.ruby
> Subject: Re: Image conversion ...
> 
> On Tue, 3 Feb 2004 08:47:16 -0500, "Useko Netsumi"
> <usenets_remote_this / earthlink.net> wrote:
> 
> >Hi, is there any Ruby code snippets I can use to transform my photo to lower
> >resolution, uniform size but maintaining aspect ration, etc ...?
> 
> RMagick (http://raa.ruby-lang.org/list.rhtml?name=rmagick) has this
> functionality, but it's way more than a code snippet.

if you have image magick installed you can also simply

  mogrify -size 50x50 image.jpg

do

  man mogrify

-a

-- 

ATTN: please update your address books with address below!

===============================================================================
| EMAIL   :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE   :: 303.497.6469
| ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
| STP     :: http://www.ngdc.noaa.gov/stp/
| NGDC    :: http://www.ngdc.noaa.gov/
| NESDIS  :: http://www.nesdis.noaa.gov/
| NOAA    :: http://www.noaa.gov/
| US DOC  :: http://www.commerce.gov/
|
| The difference between art and science is that science is what we
| understand well enough to explain to a computer.  
| Art is everything else.  
|   -- Donald Knuth, "Discover"
|
| /bin/sh -c 'for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done' 
===============================================================================