react-avatar
react-avatar copied to clipboard
some supported image type break the component
I got an error from a user when uploading a specific image the component breaks and the airbrake sent me this error
TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or OffscreenCanvas or SVGImageElement or VideoFrame)'.
then I got this error multiple times again so this issue happened with different users
@radwa-mohsen do you have an example of a such image?
It looks like users uploading photos from iphone in .heic format. That is impossible to solve withing codebase of this repo, I'd reccommend to look into another, maintained lib