ImFarhad
ImFarhad

Reputation: 3209

White border line on Image using clipPath of fabricjs

I'm trying to clip image with clipPath object using fabricjs in Reactjs . It works fine except there is a white line (about 1 pixel) showing on top and left border. Code can be checked at this codesandbox

Upvotes: 0

Views: 535

Answers (1)

melchiar
melchiar

Reputation: 2872

By default, fabric objects have a transparent stroke of 1px. Setting a strokeWidth value of 0 on your clipPath object will get rid of this.

See http://fabricjs.com/fabric-gotchas

Upvotes: 1

Related Questions