# How can I segment an image and create many images

**URL:** <https://discourse.processing.org/t/how-can-i-segment-an-image-and-create-many-images/3231>\
**Category:** Project Guidance\
**Created:** [September 3, 2018, 5:47pm UTC](https://discourse.processing.org/t/how-can-i-segment-an-image-and-create-many-images/3231 "2018-09-03T17:47:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![donammar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/donammar/32/876_2.png) [@donammar](https://discourse.processing.org/u/donammar)\
**Post date:** [September 3, 2018, 5:47pm UTC](https://discourse.processing.org/t/how-can-i-segment-an-image-and-create-many-images/3231/1 "2018-09-03T17:47:17Z")

</div>

How can I segment (crop) an image and create many images ?

i don’t find good and easy tutorials on processing.js why ?

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [September 3, 2018, 5:52pm UTC](https://discourse.processing.org/t/how-can-i-segment-an-image-and-create-many-images/3231/2 "2018-09-03T17:52:39Z")

</div>

You want to start by checking the [get](https://p5js.org/reference/#/p5/get) function. You can get get pieces of an image if you use the function with 4 parameters.

Kf
