Question
Scripts: How can I used scripts to get dimensions of an image?
I have a script that should take a template image -500x500, and any image I use to replace it should fit within the 500x500.
So if I use a source image that is 900x900, it should scaled it down to fit the template image that is 500x500.
How can I determine the templates image size (dimensions), and then use that to determine the the scaling that needs to be done?
