Scripting: resize image based on resolution
I have a variable I capture that has a resolution value which is a pixels/cm value. I then want to resize an image using that resolution variable and make sure the unit measurement is set to pixel/cm and make sure resampling is off so that it resizes 1:1.
I thought that:
imageResize(undefined,undefined,res.variable,ResampleMethod.None)
would be the right fit, but it is not. I tried using the scriptListener to grab those actions by doing it manually, but no luck. Can someone help?
