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

Conditional Image Resizing

$
0
0

Hi

 

Ive been using batch processing in photoshop since version 7, however Ive recently found the need to do conditional actions - which apparently can be done with photoshop scripting.

 

What Im trying to do is resize an image if it is over a certain size (document dimensions that is) but leave it at its original size if not.

 

If I was coding in C or something Id probably do (forgive the poor pseudo code)

 

if(document.height*document.width>640000){document.resize("50%");}

 

Can anybody point me in the right direction for creating this type of script in photoshop CS4?

 

Many thanks

 

James


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>