Image auto orient (#20018)

This commit is contained in:
Jerin K C 2023-09-08 01:08:34 +05:30 committed by GitHub
parent 3c34de120b
commit 6b996cfc61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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