Carrierwave Cropping
问题 I have an CarrierWave ImageUploader which creates a couple of versions of an original image that need to be cropped based on values in my model (crop_x, crop_y, crop_w, and crop_h). class ImageUploader < CarrierWave::Uploader::Base include CarrierWave::MiniMagick ... version :t do process :cropper process :resize_to_fill => [75, 75] end ... def cropper manipulate! do |img| img = img.crop "#{model.crop_x}x#{model.crop_y}+#{model.crop_w}+#{model.crop_h}" img end end end The problem that I'm