# How to divide a image/video into multiple pieces?

**URL:** <https://discourse.processing.org/t/how-to-divide-a-image-video-into-multiple-pieces/33965>\
**Category:** Beginners\
**Created:** [December 6, 2021, 2:58pm UTC](https://discourse.processing.org/t/how-to-divide-a-image-video-into-multiple-pieces/33965 "2021-12-06T14:58:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![badbatman](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@badbatman](https://discourse.processing.org/u/badbatman)\
**Post date:** [December 6, 2021, 2:58pm UTC](https://discourse.processing.org/t/how-to-divide-a-image-video-into-multiple-pieces/33965/1 "2021-12-06T14:58:05Z")

</div>

How can I break a image of video into multiple pieces? I want to do this with camera capture in the end. Any advice is welcome. Thank you.

So something like this:

 ![divided](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/3523229a831de88a806bf430f6f090a03210a673.jpeg)

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [December 6, 2021, 7:54pm UTC](https://discourse.processing.org/t/how-to-divide-a-image-video-into-multiple-pieces/33965/2 "2021-12-06T19:54:06Z")

</div>

in general look at

- `img.get()` with 4 parameters : _x,y and width and height_

see [Reference / Processing.org](https://processing.org/reference/PImage_get_.html)
