> For the complete documentation index, see [llms.txt](https://scenegroup.gitbook.io/cavalry/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scenegroup.gitbook.io/cavalry/nodes/shapes/image-to-shapes.md).

# Image to Shapes

Create shapes by sampling an image

[Common Attributes](/cavalry/nodes/shapes/common-attributes.md) +

**Image** - connect an image asset

**Mode:**

* **Rectangles** - output rectangles
* **Circles** - output circles

**Iterations** - set how many times the image is sampled.

**Filter** - These settings can improve image quality in both the [Viewport](https://app.gitbook.com/user-interface/menus/window-menu/viewport) and for renders – particularly when resizing images.

* **None (Fastest)** - Use when speed is of paramount importance. No resampling will be performed when the images are resized – this is the lowest quality setting.
* **Bilinear** - Basic resampling is performed. This is low quality but it's very fast.
* **Mipmaps** - Mipmaps are pre-calculated, optimised, low resolution versions of the image created via Bilinear interpolation. These are used to get the best quality and performance when scaling images down.
* **Bicubic** - This is the slowest method but it produces the best quality when scaling images up.
