mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: do not convert format for site setting uploads (#12410)
This commit is contained in:
@ -203,6 +203,7 @@ class UploadCreator
|
||||
MIN_CONVERT_TO_JPEG_SAVING_RATIO = 0.70
|
||||
|
||||
def convert_to_jpeg!
|
||||
return if @opts[:for_site_setting]
|
||||
return if filesize < MIN_CONVERT_TO_JPEG_BYTES_SAVED
|
||||
|
||||
jpeg_tempfile = Tempfile.new(["image", ".jpg"])
|
||||
|
Reference in New Issue
Block a user