Method loadImageFromUrl creates image without taking into consideration if there was a crossOrigin setting in the options. As the result one will get a security error later if use an image from a different origin.
Proposed solution:
if (options.crossOrigin) { image.crossOrigin = options.crossOrigin; }
Method loadImageFromUrl creates image without taking into consideration if there was a crossOrigin setting in the options. As the result one will get a security error later if use an image from a different origin.
Proposed solution:
if (options.crossOrigin) { image.crossOrigin = options.crossOrigin; }
after onload set.