This content has been marked as final.
Show 2 replies
-
1. Re: Conditionally resize images - error
xbytor2 Mar 26, 2010 10:08 AM (in response to tb0nus)Problems with UnitValues. Try this to get the conditional part right:
if (doc.height.as("px") > 1200) {fitImage (1800,300);} else if (doc.width.as("px") > 1200) {fitImage (1800,300);} else {fitImage (900,300);} -
2. Re: Conditionally resize images - error
tb0nus Mar 26, 2010 10:31 AM (in response to xbytor2)That worked! Now I can start scripting the other parts.
Thanks!


