Open ghost opened 10 years ago
Were you able to resolve this issue? I get the same issue when running Caman under Node on an existing image
I've changed if (!Caman.NodeJS)
inside of replaceCanvas prototype on line 584 to
if (!Caman.NodeJS && oldCanvas.parentNode)
Nice catch @timtch I had this problem too using Caman in Ionic where there is no canvas parent node. Had to modify the CoffeeScript output for now.
Here is the offending line in the CoffeeScript: https://github.com/meltingice/CamanJS/blob/master/src/core/caman.coffee#L478
Hello there. Very cool library! saved me a lot of time! One thing that happened. I'm using an image object, without an image in the dom, if I resize an image it stops in replaceCanvas method, when it tries to access a parent node. Check if the parent exists solves this problem.