ImageMagick and resizing bitmaps

How to resize bitmap using ‘magick.rb’?
I have this code:

image = Magick::Image.new ARGV[0]
image.set “size”=>"50x500"
image.write(“filename”=>“out.jpg”)

but it doesn’t work. ‘out.jpg’ is exact copy of source image.

···


Szymon Drejewicz

How to resize bitmap using ‘magick.rb’?
I have this code:

image = Magick::Image.new ARGV[0]
image.set “size”=>“50x500”
image.write(“filename”=>“out.jpg”)

try:

image.resize!(50, 500)
image.write(“out.jpg”)

···

At 18:07 11.04.03 +0900, you wrote:

but it doesn’t work. ‘out.jpg’ is exact copy of source image.


Szymon Drejewicz


robert wagner <rw,SU,welt,PUNTO,de> . zorz . in berlin
~

Hmmm…I haven’t seen the original post, but the code snippet looks like
it might be for the RubyMagick package that predated RMagick. Certainly
RMagick doesn’t have a set method.

···

On Fri, 11 Apr 2003 22:54:20 +0900, Robert Wagner wrote:

At 18:07 11.04.03 +0900, you wrote:

How to resize bitmap using ‘magick.rb’? I have this code:

image = Magick::Image.new ARGV[0]
image.set “size”=>“50x500”
image.write(“filename”=>“out.jpg”)

try:

image.resize!(50, 500)
image.write(“out.jpg”)

but it doesn’t work. ‘out.jpg’ is exact copy of source image.


Szymon Drejewicz


robert wagner <rw,SU,welt,PUNTO,de> . zorz . in berlin ~