mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: automatic PNG to JPG conversion wasn't working
This commit is contained in:
parent
fba9bbb18c
commit
ecec23fae4
@ -124,7 +124,7 @@ class UploadCreator
|
|||||||
def should_convert_to_jpeg?
|
def should_convert_to_jpeg?
|
||||||
return false if !TYPES_CONVERTED_TO_JPEG.include?(@image_info.type)
|
return false if !TYPES_CONVERTED_TO_JPEG.include?(@image_info.type)
|
||||||
return true if @opts[:pasted]
|
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
|
pixels > MIN_PIXELS_TO_CONVERT_TO_JPEG
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user