'How to split an image into multiple bubbles pieces, not jigsaw tiles or polygons in JavaScript?

I am trying to split an image into bubble pieces in React. I tried Snapfit.js but it seems like they only support rectangle or Polygon. http://www.netzgesta.de/snapfit/ I really need more smooth bubbles. Is there any way or library to achieve my goal? Thank you!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source