Closed airda2895 closed 2 years ago
Bones Adrià!
This seems more of an issue with the types than the library, the library expect an object with ImageData properties. Here, if getImageData
returns an object that matches that criteria (not sure if it does) you can cast it and do resolve(this.gameContentCX.getImageData(0, 0, width, height) as ImageData)
Bones Adrià!
This seems more of an issue with the types than the library, the library expect an object with ImageData properties. Here, if
getImageData
returns an object that matches that criteria (not sure if it does) you can cast it and doresolve(this.gameContentCX.getImageData(0, 0, width, height) as ImageData)
Thanks @obartra!
I've just tried that, but unfortunately, I keep getting the same error:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi, I'm getting this error when trying to use
ssim
on Angular (TypeScript). I don't know if I'm doing something wrong, but it looks like the code which is supposed to load the image, returns a type of object whichssim
doesn't expect.My code: