createImageBitmap method accepts various types of image sources including an
Blob. Firefox accepts a
CanvasRenderingContext2D as well, but it’s not in the spec nor supported by any other browser. This non-standard behaviour is now considered deprecated and will be removed in the near future. Use a
<canvas> directly instead.