There is an example in the sandbox - http://jsfiddle.net/natchiketa/gXZJf/

var clipByName = function (ctx) { var clipRect = findByClipName(this.clipName); var scaleXTo1 = (1 / this.scaleX); var scaleYTo1 = (1 / this.scaleY); ctx.save(); ctx.translate(0,0); ctx.rotate(degToRad(this.angle * -1)); ctx.scale(scaleXTo1, scaleYTo1); ctx.beginPath(); ctx.rect( clipRect.left - this.left, clipRect.top - this.top, clipRect.width, clipRect.height ); ctx.closePath(); ctx.restore(); } 

How to make so that the circumcision of the picture was on an ellipse? I managed to do only in a circle using arc .

PS in the sandbox, you must enable Fabric.js .

  • one
    see if drawing an ellipse (formula) can help you with this task jsfiddle.net/Smoren/vjrkst4c - Arthur
  • Yes, it helped, thanks a lot! - KRasul

0