mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:21:12 +08:00
Convert HEIC uploads to JPG by default (#10395)
This commit is contained in:
@ -218,7 +218,7 @@ class UploadCreator
|
||||
end
|
||||
|
||||
def convert_heif_to_jpeg?
|
||||
SiteSetting.convert_heif_to_jpeg && File.extname(@filename).downcase.match?(/\.hei(f|c)$/)
|
||||
File.extname(@filename).downcase.match?(/\.hei(f|c)$/)
|
||||
end
|
||||
|
||||
def convert_heif!
|
||||
|
Reference in New Issue
Block a user