# How can I turn an image or svg into Basic Shapes?

**URL:** <https://discourse.processing.org/t/how-can-i-turn-an-image-or-svg-into-basic-shapes/32465>\
**Category:** Coding Questions\
**Created:** [September 28, 2021, 7:49am UTC](https://discourse.processing.org/t/how-can-i-turn-an-image-or-svg-into-basic-shapes/32465 "2021-09-28T07:49:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![micycle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micycle/32/201_2.png) [@micycle](https://discourse.processing.org/u/micycle)\
**Post date:** [September 30, 2021, 11:53am UTC](https://discourse.processing.org/t/how-can-i-turn-an-image-or-svg-into-basic-shapes/32465/2 "2021-09-30T11:53:16Z")

</div>

This can be achieved through a _convex hull_ operation (for shape that have holes or multiple islands; for shapes like the heart, computing its convex hull will not return exactly return the shape you’re looking for).

This functionality is provided by a few Processing libraries including my own, [Processing Geometry Suite](https://discourse.processing.org/t/processing-geometry-suite/29924).

---

_[View the full topic](https://discourse.processing.org/t/how-can-i-turn-an-image-or-svg-into-basic-shapes/32465)._
