# Can read photo in but not process

**URL:** https://discourse.nodered.org/t/can-read-photo-in-but-not-process/42639
**Category:** General
**Created:** [14 March 2021 19:46 UTC](https://discourse.nodered.org/t/can-read-photo-in-but-not-process/42639 "2021-03-14T19:46:08Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [14 March 2021 20:27 UTC](https://discourse.nodered.org/t/can-read-photo-in-but-not-process/42639/5 "2021-03-14T20:27:48Z")

</div>

But that is an image not a txt file? as your file node is set to read.

and there is no image-tools nodes in the flow you posted.

Maybe start again - what are you trying to do? read colour data from a specific X/Y postition?

If so, then maybe this will help...

> [@Extract color from location on image](https://discourse.nodered.org/t/extract-color-from-location-on-image/26344/2):
>
> Assuming your image isn't a simple bitmap in a buffer (where you could calculate the offset to the pixel) you can use node-red-contrib-image-tools. If you can have the X & Y position, you can get the colour using node-red-contrib-image-tools Inject (X&Y) - image node (return image) - function node - debug Function. .. msg.image = msg.payload; var x=msg.pixel.x; var y=msg.pixel.y; msg.payload = msg.image.getPixelColor(x, y); // returns the colour of that pixel e.g. 0xFFFFFFFF return msg; EDI…

---

_[View the full topic](https://discourse.nodered.org/t/can-read-photo-in-but-not-process/42639)._
