Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

Resizing script (dimension.height < dimension.width) not working

$
0
0

Hi there,

 

I've been trying for hours to write a script (js) triggering resizing actions depending on the image size.

 

Here's where I'm stuck:

 

if (dimension.height < dimension.width)    app.doAction("Horizontal","Resizing.ATN")   
else    app.doAction("Vertical","Resizing.ATN")

   

Any tips are welcomed!


Viewing all articles
Browse latest Browse all 12244

Trending Articles