Commit ab9bd2f9 authored by Zach Prezkuta's avatar Zach Prezkuta
Browse files

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

parent d331a14d
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment