mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
let's not use progressing rendering on images
This commit is contained in:
@@ -122,6 +122,7 @@ class OptimizedImage < ActiveRecord::Base
|
|||||||
-extent #{dimensions}
|
-extent #{dimensions}
|
||||||
-interpolate bicubic
|
-interpolate bicubic
|
||||||
-unsharp 2x0.5+0.7+0
|
-unsharp 2x0.5+0.7+0
|
||||||
|
-interlace none
|
||||||
-quality 98
|
-quality 98
|
||||||
-profile #{File.join(Rails.root, 'vendor', 'data', 'RT_sRGB.icm')}
|
-profile #{File.join(Rails.root, 'vendor', 'data', 'RT_sRGB.icm')}
|
||||||
#{to}
|
#{to}
|
||||||
@@ -153,6 +154,7 @@ class OptimizedImage < ActiveRecord::Base
|
|||||||
-thumbnail #{opts[:width]}
|
-thumbnail #{opts[:width]}
|
||||||
-crop #{dimensions}+0+0
|
-crop #{dimensions}+0+0
|
||||||
-unsharp 2x0.5+0.7+0
|
-unsharp 2x0.5+0.7+0
|
||||||
|
-interlace none
|
||||||
-quality 98
|
-quality 98
|
||||||
-profile #{File.join(Rails.root, 'vendor', 'data', 'RT_sRGB.icm')}
|
-profile #{File.join(Rails.root, 'vendor', 'data', 'RT_sRGB.icm')}
|
||||||
#{to}
|
#{to}
|
||||||
@@ -181,6 +183,7 @@ class OptimizedImage < ActiveRecord::Base
|
|||||||
-auto-orient
|
-auto-orient
|
||||||
-gravity center
|
-gravity center
|
||||||
-background transparent
|
-background transparent
|
||||||
|
-interlace none
|
||||||
-resize #{dimensions}
|
-resize #{dimensions}
|
||||||
-profile #{File.join(Rails.root, 'vendor', 'data', 'RT_sRGB.icm')}
|
-profile #{File.join(Rails.root, 'vendor', 'data', 'RT_sRGB.icm')}
|
||||||
#{to}
|
#{to}
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ class UploadCreator
|
|||||||
'convert', @file.path,
|
'convert', @file.path,
|
||||||
'-auto-orient',
|
'-auto-orient',
|
||||||
'-background', 'white',
|
'-background', 'white',
|
||||||
|
'-interlace', 'none',
|
||||||
'-flatten',
|
'-flatten',
|
||||||
'-quality', SiteSetting.png_to_jpg_quality.to_s,
|
'-quality', SiteSetting.png_to_jpg_quality.to_s,
|
||||||
jpeg_tempfile.path
|
jpeg_tempfile.path
|
||||||
|
|||||||
Reference in New Issue
Block a user