FEATURE: new 'strip image metadata' site setting

This commit is contained in:
Régis Hanol
2017-07-25 11:48:39 +02:00
parent 933711a771
commit c7c93e7159
8 changed files with 39 additions and 28 deletions

View File

@ -237,7 +237,7 @@ class UploadCreator
def optimize!
OptimizedImage.ensure_safe_paths!(@file.path)
ImageOptim.new.optimize_image!(@file.path)
FileHelper.optimize_image!(@file.path)
extract_image_info!
rescue ImageOptim::Worker::TimeoutExceeded
Rails.logger.warn("ImageOptim timed out while optimizing #{@filename}")