-
Conform Layer to scale based on Alpha
I need to line up logos in a row, with a set amount of spacing between them, and they all need to be scaled to the same size. The problem is these logos are all varying sizes, and some have extra white space around them giving them a larger bounding box than the actual image. I also need to be able to swap the logos out with others as needed and what ever is replaced gets recalculated and scaled appropriately. Help?
My thought would be possibly analyzing a layer that would act as the “master scale” that all the logos adhere to, then use sampleImage to get the size of its alpha channel, and then conform the size of any logos (scaling by alpha channel and NOT by the bounding box dimensions of the layer) to master scale’s size. Is this possible via expressions? I’m not familiar with how to use sampleImage, but I do have some expression/scripting experience. Any questions about what I’m trying to accomplish please ask me! Thanks.
