Мне удалось написать код для того, что я хотел здесь:
{Image} = Canvas = require 'canvas' fs = require 'fs'
img = new Image img.onload = ->
canvas = new Canvas 200, 200
cxt = canvas.getContext '2d'
cxt.drawImage img, sx, sy, sw, sh, dx, dy, dw, dh
cxt.globalCompositeOperation = "destination-atop"
cxt.beginPath()
cxt.arc 100, 100, 50, 0, Math.PI*2, true
cxt.fill()
cxt.closePath()
canvas.toBuffer (err, buf) ->
return cb(err) if err
fs.writeFile "/tmp/dest.jpeg", buf, -> console.log 'test done !'
img.src = '/tmp/src.jpeg'