From: Tim Hunter Date: 2004-02-04T09:35:06+09:00 Subject: Re: Image conversion ... On Tue, 03 Feb 2004 18:57:21 -0500, Useko Netsumi wrote: > Thanks Ara, I'll get Rmagick and try them out. > > "Ara.T.Howard" wrote in message > news:Pine.LNX.4.44.0402031119350.29981-100000@fattire.ngdc.noaa.gov... >> On Tue, 3 Feb 2004, Tim Hunter wrote: >> >> if you have image magick installed you can also simply >> >> mogrify -size 50x50 image.jpg >> Using RMagick, the Ruby equivalent to this command is: require 'RMagick' include Magick img = Image.read("image.jpg").first img.change_geometry("50x50") { |cols, rows| img.resize!(cols, rows) } img.write("image.jpg")