Revert "Support all image types (resolves #192)"

This reverts commit f67e4e6cb9.
This commit is contained in:
Alex Ling
2021-09-07 10:45:59 +00:00
parent f67e4e6cb9
commit d9adb49c27
5 changed files with 10 additions and 9 deletions
-4
View File
@@ -120,7 +120,3 @@ class String
match / s.size
end
end
def filename_is_image(fn : String) : Bool
MIME.from_filename?(fn).try(&.starts_with?("image/")) || false
end