Image auto orient (#20018)
This commit is contained in:
parent
3c34de120b
commit
6b996cfc61
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ class BaseUploader < CarrierWave::Uploader::Base
|
|||
return if file.content_type.include?("svg")
|
||||
|
||||
manipulate! do |image|
|
||||
image.auto_orient
|
||||
image.strip unless image.frames.count > FRAME_STRIP_MAX
|
||||
image = yield(image) if block_given?
|
||||
image
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue