.toLowerCase() breaks support for images with uppercase extension and is not necessary as far as I understand. Many devices store images as example.JPG.
I need to close this pull request, while the function is now only ment for determining content that is of an incompatible format, so lowercase makes the if-call easier.
.toLowerCase() breaks support for images with uppercase extension and is not necessary as far as I understand. Many devices store images as example.JPG.