Thanks for this! I'm working on a vertical composition, trying to make the image fill the space. When fed landscape-orientation images in a vertical comp, it doesn't seem to work. @2:54 You are showing the script here to make it work, but it seems like both scripts are exactly the same. If I switch out the imgWidth & imgHeight with one another in the vertical comp script, will that work?
LOL I answered my own question! I tried this solution and it works! Below is the script for the vertical comps: Vertical Composition: ------------ img = thisLayer; imgWidth = img.width; imgHeight = img.height; if (imgHeight > 2*imgWidth) {100} else if (imgHeight 2*imgHeight) {100} else if (imgWidth
Thanks for this! I'm working on a vertical composition, trying to make the image fill the space. When fed landscape-orientation images in a vertical comp, it doesn't seem to work.
@2:54 You are showing the script here to make it work, but it seems like both scripts are exactly the same. If I switch out the imgWidth & imgHeight with one another in the vertical comp script, will that work?
LOL I answered my own question! I tried this solution and it works! Below is the script for the vertical comps:
Vertical Composition:
------------
img = thisLayer;
imgWidth = img.width;
imgHeight = img.height;
if (imgHeight > 2*imgWidth) {100}
else if (imgHeight 2*imgHeight) {100}
else if (imgWidth
@@keeprollingKenni Good catch, glad you got it solved :)
Awesome.