mirror of
https://github.com/discourse/discourse.git
synced 2025-08-21 19:11:18 +08:00
FIX: automatic PNG to JPG conversion wasn't working
This commit is contained in:
parent
fba9bbb18c
commit
ecec23fae4
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ class UploadCreator
|
|||
def should_convert_to_jpeg?
|
||||
return false if !TYPES_CONVERTED_TO_JPEG.include?(@image_info.type)
|
||||
return true if @opts[:pasted]
|
||||
return false if SiteSetting.png_to_jpg_quality < 100
|
||||
return false if SiteSetting.png_to_jpg_quality == 100
|
||||
pixels > MIN_PIXELS_TO_CONVERT_TO_JPEG
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue