Closed lemon0815 closed 5 years ago
Hi, I'm sorry for the delay, but honestly, I don't understand the error. The hash of url2promise is used only in the function parseURL and parseURL uses a string as a key, not HTMLImageElement.
Could you show the code that causes the error?
Thank you for your replay, I think of apng-canvas as another repository ajpng, the code in AJPNG.animateContext
AJPNG.parseURL(url)
should be
AJPNG.parseURL(url.src),or it will cause the error. The repository doesn't have the problem, sorry for bother you.
Ок, I close this.
When I load more than one image that I want to transform to canvas, they will all be the same as the first. Because using element as keys of Object, they will all become "[object HTMLImageElement]"