Merge pull request #3396 from fermionic/auto-rotate-images
#2322 -- rotate uploaded images based on the meta-data
This commit is contained in:
commit
fd748b8afb
1 changed files with 9 additions and 0 deletions
|
|
@ -17,6 +17,15 @@ class UnprocessedImage < CarrierWave::Uploader::Base
|
||||||
model.random_string + File.extname(@filename) if @filename
|
model.random_string + File.extname(@filename) if @filename
|
||||||
end
|
end
|
||||||
|
|
||||||
|
process :orient_image
|
||||||
|
|
||||||
|
def orient_image
|
||||||
|
manipulate! do |img|
|
||||||
|
img.auto_orient
|
||||||
|
img
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
version :thumb_small
|
version :thumb_small
|
||||||
version :thumb_medium
|
version :thumb_medium
|
||||||
version :thumb_large
|
version :thumb_large
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue