let's not use progressing rendering on images

This commit is contained in:
Régis Hanol 2017-06-26 23:19:48 +02:00
parent 21f7ac1f25
commit aa69f78fed
2 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,7 @@ class OptimizedImage < ActiveRecord::Base
-extent #{dimensions}
-interpolate bicubic
-unsharp 2x0.5+0.7+0
-interlace none
-quality 98
-profile #{File.join(Rails.root, 'vendor', 'data', 'RT_sRGB.icm')}
#{to}
@ -153,6 +154,7 @@ class OptimizedImage < ActiveRecord::Base
-thumbnail #{opts[:width]}
-crop #{dimensions}+0+0
-unsharp 2x0.5+0.7+0
-interlace none
-quality 98
-profile #{File.join(Rails.root, 'vendor', 'data', 'RT_sRGB.icm')}
#{to}
@ -181,6 +183,7 @@ class OptimizedImage < ActiveRecord::Base
-auto-orient
-gravity center
-background transparent
-interlace none
-resize #{dimensions}
-profile #{File.join(Rails.root, 'vendor', 'data', 'RT_sRGB.icm')}
#{to}

View File

@ -136,6 +136,7 @@ class UploadCreator
'convert', @file.path,
'-auto-orient',
'-background', 'white',
'-interlace', 'none',
'-flatten',
'-quality', SiteSetting.png_to_jpg_quality.to_s,
jpeg_tempfile.path