FIX: automatically fix image orientation

This commit is contained in:
Régis Hanol 2018-05-17 14:55:58 +02:00
parent fc0e50b34c
commit 82148a168f
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ class UploadCreator
elsif !Rails.env.test?
convert_to_jpeg! if should_convert_to_jpeg?
downsize! if should_downsize?
fix_orientation! if should_fix_orientation?
return @upload if is_still_too_big?