Closed bebraw closed 11 years ago
Good call. I agree that's something that should be optionally disabled.
Just pushed this option. Try doing:
Caman.allowRevert = false
before initializing your image. You'll have to grab the latest from master branch right now. Let me know how it goes.
Works great! Thanks a lot. :)
Feel free to close this issue. :)
Great! I'll push out a version bump soon. One other thing that needs fixing first...
I am trying to perform various operations on a reasonably big image (5616 x 3744 px) using Node version of Caman. Unfortunately it seems to run out of memory (gives "FATAL ERROR: JS Allocation failed - process out of memory" error) and gets stuck around
finishInit
(atthis.originalPixelData.push(pixel);
loop).Considering
this.originalPixelData
is used only byrevert
perhaps you could add some kind of an option either to disable it temporarily or makerevert
optional (saves memory by default!). Either way would work.