|
PSP9 on WinXP
I am having trouble with a simple resize script. I want to batch process using a script that resizes files to a specific width, leaving the height to be calc'd via the aspect ratio. When I run the script via the Batch Process, the first file seems to process correctly, but then each subsequent file gets the same dimensions as the first file, distorting them.
When I run the batch in interactive mode (or switch the resize action to interactive) it works perfectly, but then I have to click "ok" for each file. This gets cumbersome when there's dozens of files to process per batch.
Here's the resize portion of the script. Can anyone tell me how to modify it to properly resize a file given just one dimension?
App.Do( Environment, 'Resize', {
'Width': 614,
'CurrentDimensionUnits': App.Constants.UnitsOfMeasure.Pixels,
'CurrentResolutionUnits': App.Constants.ResolutionUnits.PixelsPerCM,
'MaintainAspectRatio': True,
'Resample': True,
'ResampleType': App.Constants.ResampleType.PixelResize,
'ResizeAllLayers': True,
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Interactive,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((9,0,0),1)
}
})
Thanks in advance
Jacob
|