I am trying to implement manual cropping for the web application I'm working on, and I still have this:
version :croppedversion do process :manualcrop => [model.crop_x, model.crop_y, model.crop_h, model.crop_w] end process :resize_to_limit => [600, 600] def manualcrop(x,y,h,w) manipulate! do |img| img = img.crop(x,y,h,w) end end
The problem is that the model rises as zero. From the documentation I read, this would be the right way to do this.
Any suggestions? I moved the cropping call to the callback in the model, but I would really like it to be inside the carrier wave
source share