Compare pixels

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

Sablerock
Posts: 1
Joined: Thu Mar 02, 2023 4:54 am

Compare pixels

Post by Sablerock »

Guys
I need to compare 2 png images A and B. Identical number of pixels. If pixel(x,y) from A is lighter(whiter) than B, then move A to B.
I did search the board, nothing came up.
Is there a script for this?
Many thanks
User avatar
Kukurykus
Posts: 528
Joined: Mon Jul 25, 2016 12:36 pm

Re: Compare pixels

Post by Kukurykus »

Upload examplary files to compare.
User avatar
Stephen_A_Marsh
Posts: 29
Joined: Sun Aug 04, 2019 12:37 pm

Re: Compare pixels

Post by Stephen_A_Marsh »

Layer the file that may have lighter pixels over the other file (2 layers). In the upper layer file, set the blend mode to lighten. Merge or flatten the layers.