JavaScript for Photoshop scales selected area to fit inside of guides. Video tutorial is Windows. Script works the same both macOS and Windows.
Scale and move a layer to fit selected area inside guides
Choice of vertical alignment when height is short
Adapt open source to customize or create other scripts
Get the script: https://www.marspremedia.com/software...
How to install Photoshop scripts macOS: • Photoshop Scripts How to Install macOS
How to install Photoshop scripts Windows: • Photoshop Scripts How to Install Windows
More about installing scripts both macOS and Windows: https://www.marspremedia.com/software...
Other useful scripts for Adobe Creative Cloud applications: https://www.marspremedia.com/software
Example job images thanks to https://unsplash.com