ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: marciano on June 15, 2025, 08:14:32 AM

Title: Get RGB info of one pixel
Post by: marciano on June 15, 2025, 08:14:32 AM
Is it possible to get RGB values of the top left pixel of a jpg photo?
Title: Re: Get RGB info of one pixel
Post by: marciano on June 15, 2025, 08:51:28 AM
Pixel position (n,m).
Image Magick Linux command line: convert photo.jpg[1x1+n+m] -format "%[fx:int(255*r)],%[fx:int(255*g)],%[fx:int(255*b)]" info:
Output: red value, green value, blue value

Source: https://www.imagemagick.org/discourse-server/viewtopic.php?p=46471#p46471
Title: Re: Get RGB info of one pixel
Post by: StarGeek on June 15, 2025, 10:04:34 AM
Glad you found a solution.

Exiftool would not be a solution here. Exiftool only deals with metadata. It has no ability to read image data.