Commit 8420c85d

mo k <mo@mokhan.ca>
2012-05-03 03:04:15
i think i finally figured out the thumbnail crop issue. could it be so simple?
1 parent b1c499e
Changed files (1)
app
app/uploaders/image_uploader.rb
@@ -34,11 +34,12 @@ class ImageUploader < CarrierWave::Uploader::Base
   end
 
   version :thumb do
+    process :manualcrop
     process :resize_to_fill => [210, 150]
   end
 
   def manualcrop
-    return unless model.cropping?
+    #return unless model.cropping?
     manipulate! do |img|
       img = img.crop(model.crop_x.to_i, model.crop_y.to_i, model.crop_w.to_i, model.crop_h.to_i)
     end