fabricjs / fabric.js

Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser
http://fabricjs.com
Other
29.2k stars 3.52k forks source link

[Feature]: draw a stroke around image with alpha channel #10288

Open no-chili opened 1 week ago

no-chili commented 1 week ago

CheckList

Description

https://konvajs.org/docs/sandbox/Image_Border.html Is there a built-in function like this, or is there a good way to achieve this effect?

Current State

I’m sorry, I don’t have a good idea.

Additional Context

No response

asturur commented 1 week ago

No there isn't. The link you posted explains you how to implement it. The issue with that is that you can't run it on webgl easily.