Closed azayneeva closed 6 years ago
In the browser, we already have an image parser (Image), so we directly use that if it exists.
In node, you have to use an image parser (image-parser
/ jimp
/ other).
The code was wrong :
if (!Image)
but it should have been
if (typeof Image === "undefined") {
but this is now fixed in v 1.0.3
When passing the incorrect format it throws this error
this comes from this code
I assume Image was originally required but it has been removed