Convert HEIC uploads to JPG by default (#10395)

This commit is contained in:
Penar Musaraj
2020-08-07 11:17:50 -04:00
committed by GitHub
parent c5c5bb4fad
commit 86cb5803ba
3 changed files with 2 additions and 9 deletions

View File

@ -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!