#2322 -- rotate uploaded images based on the meta-data

This commit is contained in:
Zach Prezkuta 2012-06-17 19:47:34 -06:00
parent d331a14dd2
commit ab9bd2f9e3

View file

@ -17,6 +17,15 @@ class UnprocessedImage < CarrierWave::Uploader::Base
model.random_string + File.extname(@filename) if @filename
end
process :orient_image
def orient_image
manipulate! do |img|
img.auto_orient
img
end
end
version :thumb_small
version :thumb_medium
version :thumb_large