The isImage helper function depends on the mime type and in certain cases it doesn't work as expected. See related issues.
To overcome this issues, using file signature inspection is proposed.
Fixes #292
Fixes #313
Type of change
Bug fix (non-breaking change which fixes an issue)
Description
The isImage helper function depends on the mime type and in certain cases it doesn't work as expected. See related issues. To overcome this issues, using file signature inspection is proposed.
Type of change
How Has This Been Tested
Checklist
I haven't worked with JS for a while and haven't had the time to properly test this PR. Anyone feel free to pick it up from here if needed.