I’m trying to adjust a PNG image frame to autofit around another image. I’m using separate Replicator COMPs, one for frames and one for the images to fill the frames. I’m doing it this way to be able to randomize frames on the images, since there are way fewer frames than there are images.
I’m not sure if this is a good method, but I though maybe using openCV or GLSL to detect the edges of the image, then using that to somehow resize the frames to fit- but I can’t really get it to work. TBF I’m not well-versed in either language.
I tried creating a matte from the frame, then comp that over a black background. That sort of works to mask the area around the frame and not allow the image to show beyond that, but I need to keep transparency around the outside of the frames(so I can layer over a background), so resizing each frame to fit the image seems like it would be the better way. Maybe I’m just not thinking of an easier solution, I could really use some help on this one!
Attached image is a just a crop of the final output. Final output will be about 40 randomized images at any time (thus the replicators).
