Merge pull request #6377 from tgxworld/remove_tif_tiff

Drop `tif`, `tiff`, `webp` and `bmp` from supported images.
This commit is contained in:
Guo Xiang Tan
2018-09-12 09:32:32 +08:00
committed by GitHub
13 changed files with 41 additions and 22 deletions

View File

@ -40,7 +40,7 @@ module ImportScripts
end
def html_for_upload(upload, display_filename)
if FileHelper.is_image?(upload.url)
if FileHelper.is_supported_image?(upload.url)
embedded_image_html(upload)
else
attachment_html(upload, display_filename)