By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Thrown when a null or undefined image is passed as parameter. Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type ' (HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap)'. The CanvasRenderingContext2D.drawImage() method of the Adds an elliptical arc to the current path. You signed in with another tab or window. Failed to execute 'drawImage' on 'CanvasRenderin | Default: 0. an HTMLImageElement, Might be null if it is not associated with a