//Get the images passed in - there could be more than one
let arrImgs = args.images;
//Resort to using a for loop for this example rather than forEach due to asynchronicity
let intCount;
for (intCount = 0; intCount < arrImgs.length; intCount++) {
await QuickLook.present(arrImgs[intCount]);
};
It assumes you are setting the script as a share sheet destination for imags in Scriptable.
Scriptable doesn’t provide an easy way to do that. However, you can get the JPEG or PNG data of an image. I would imagine that you can deduce the RGB values from that.