diff --git a/README.md b/README.md index 93454ae5..5b954aea 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,4 @@ Guidelines for Pull Requests and general information about how you can help us i ## License -AGPLv3. +[AGPLv3](https://github.com/Retrospring/retrospring/blob/master/LICENSE). diff --git a/lib/paperclip_processors/cropper.rb b/lib/paperclip_processors/cropper.rb index 74626004..ddbb076c 100644 --- a/lib/paperclip_processors/cropper.rb +++ b/lib/paperclip_processors/cropper.rb @@ -16,12 +16,11 @@ module Paperclip if target.cropping? case @attachment.name when :profile_picture - ['-crop', "'#{target.crop_w.to_i}x#{target.crop_h.to_i}+#{target.crop_x.to_i}+#{target.crop_y.to_i}'"] + ['-auto-orient', '-strip', '+repage', '-crop', "'#{target.crop_w.to_i}x#{target.crop_h.to_i}+#{target.crop_x.to_i}+#{target.crop_y.to_i}'"] when :profile_header - ['-crop', "'#{target.crop_h_w.to_i}x#{target.crop_h_h.to_i}+#{target.crop_h_x.to_i}+#{target.crop_h_y.to_i}'"] + ['-auto-orient', '-strip', '+repage', '-crop', "'#{target.crop_h_w.to_i}x#{target.crop_h_h.to_i}+#{target.crop_h_x.to_i}+#{target.crop_h_y.to_i}'"] end end end end end -