search for: heightchanged

Displaying 1 result from an estimated 1 matches for "heightchanged".

2008 Oct 08
0
RangeError (bignum too big to convert into `long'
...h,cropfile,percentcrop) path = path.chomp cropfile = cropfile.chomp percentcrop = (100-percentcrop.to_i)/100.0 picwidth = 640 ; #width of the pic (in pixels) picheight = 480; #height of the pic (pixels) widthchanged = (picwidth*percentcrop) #new width (based on the percentage specified by the user) heightchanged = (picheight*percentcrop) #new height (based on the percentage of cropping specified by the user) img = Magick::Image.read(path).first #reads the image specfied by the user path img = img.scale(640,480) #scales image to 640x480 img.write"/home/anmol/image.jpg" #scales image to 640x480 img...