# Determine x and y coordinate in node node-red-image-tools to crop image

**URL:** <https://discourse.nodered.org/t/determine-x-and-y-coordinate-in-node-node-red-image-tools-to-crop-image/65909>\
**Category:** General\
**Created:** [2 August 2022 06:36 UTC](https://discourse.nodered.org/t/determine-x-and-y-coordinate-in-node-node-red-image-tools-to-crop-image/65909 "2022-08-02T06:36:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![faridomu](https://avatars.discourse-cdn.com/v4/letter/f/c89c15/32.png) [@faridomu](https://discourse.nodered.org/u/faridomu)\
**Post date:** [2 August 2022 06:36 UTC](https://discourse.nodered.org/t/determine-x-and-y-coordinate-in-node-node-red-image-tools-to-crop-image/65909/1 "2022-08-02T06:36:00Z")

</div>

Hello everyone  
I have to crop image using node node-red-image-tools but i don't know how to determine x and y coordinate.  
I already crop image before and input random number for x and y that show in figure below.  
but i don't understand where x and y is coming from or how the formula to get x and y coordinate.  
Anyone can explain? thanks for your help

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/6/b6db537629ff3a6f51d4301357d5380727db0ad6.png)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [2 August 2022 06:48 UTC](https://discourse.nodered.org/t/determine-x-and-y-coordinate-in-node-node-red-image-tools-to-crop-image/65909/2 "2022-08-02T06:48:51Z")

</div>

Images are usually referenced from 0,0 being the top left of the image. So x is across the image, y is down the image. Then w is the width you want and h the height.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 October 2022 06:49 UTC](https://discourse.nodered.org/t/determine-x-and-y-coordinate-in-node-node-red-image-tools-to-crop-image/65909/3 "2022-10-01T06:49:49Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
