Hi, this is a question for PS Super Experts (I would think so).
So here is a situation. I need a script to baseline* images. I have roughly 40k+ images that need to be baselined and doing this manually would take ages. So I need a script that would do this automatic. Let's say I have image that is 2000x2000px. Script should start checking at the bottom of canvas @ 2000px. Would check the whole row and if there are only white pixels would move on to the next row, like 1999px and check again if all pixels are white. If it finds pixel that is not white (in hex or rgb value) then it would know that this is the bottom of an actual image. I have added example below. Does anyone know if this is even possible?
P.S. Images inside white canvas are not in the same position.
*Baseline - dropping images which is on a white background to the lowest point of canvas.
So here is a situation. I need a script to baseline* images. I have roughly 40k+ images that need to be baselined and doing this manually would take ages. So I need a script that would do this automatic. Let's say I have image that is 2000x2000px. Script should start checking at the bottom of canvas @ 2000px. Would check the whole row and if there are only white pixels would move on to the next row, like 1999px and check again if all pixels are white. If it finds pixel that is not white (in hex or rgb value) then it would know that this is the bottom of an actual image. I have added example below. Does anyone know if this is even possible?
P.S. Images inside white canvas are not in the same position.
*Baseline - dropping images which is on a white background to the lowest point of canvas.