I emailed Ryan (creator of CamanJS
) and he replied that there's a function called reloadCanvasData() that can be called to 'refresh' Caman's image data cache with any changes to the canvas's original context. Here's the source link: https://github.com/meltingice/CamanJS/blob/master/src/core/caman.coffee#L387-L392
This worked perfectly: store the Caman instance you create for your canvas and then call .reloadCanvasData()
on any subsequent runs. You'll then need to re-apply any Caman
manipulations you desire.
I wanted to document this function as google doesn't appear to contain any references to it yet.