When dealing with large images (such as a panorama image shoot with an iPhone, resolution: 11118 × 3820) the loadImage() function with canvas=true will produce a warning:
Canvas area exceeds the maximum limit (width * height > 16777216).
the canvas will then be empty, for example canvas.toDataURL() or canvas.toBlob() will return an empty object.