mirror of
https://github.com/hkalexling/Mango.git
synced 2026-03-20 00:00:48 -04:00
Support all image types (resolves #192)
This commit is contained in:
@@ -120,3 +120,7 @@ class String
|
||||
match / s.size
|
||||
end
|
||||
end
|
||||
|
||||
def filename_is_image(fn : String) : Bool
|
||||
MIME.from_filename?(fn).try(&.starts_with?("image/")) || false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user