react-avatar icon indicating copy to clipboard operation
react-avatar copied to clipboard

some supported image type break the component

Open radwa-mohsen opened this issue 3 years ago • 2 comments

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 avatar Aug 01 '22 10:08 radwa-mohsen

@radwa-mohsen do you have an example of a such image?

kirill3333 avatar Dec 26 '22 16:12 kirill3333

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

Alex-Github-Account avatar Feb 01 '23 10:02 Alex-Github-Account