Displaying 1 result from an estimated 1 matches for "bottomcrop".
Did you mean:
bottomcol
2008 Oct 08
0
RangeError (bignum too big to convert into `long'
.... The
function on execution gives an error for the Rmagick crop method , the
error is wriiten after the function . I am using the same
function(except for the change in name, rest everything is same) for
cropping from left , right and bottom and they are working fine.
All the left , right , top and bottomcrop functions are given the same
arguments but in case of topcrop these give an error and rest they
work fine .
FUNCTION:
def topcrop(path,cropfile,percentcrop)
path = path.chomp
cropfile = cropfile.chomp
percentcrop = (100-percentcrop.to_i)/100.0
picwidth = 640 ; #width of the pic (in pixels)
pichei...