isImageFile

Verifies whether an image file is valid.

isImageFile(path) → returns boolean

isImageFile Argument Reference

path string
Required

Pathname to a image file.

Fork me on GitHub