Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 99971

Help With Scripting

$
0
0

Hey all,

 

So I am not experienced with JavaScript programming, but I'm interested in creating a Photoshop script that would do the following things:

 

1. Search a folder for any image files meet any of these criteria:

- Image is not a .tga

- Longest pixel length is greater than 4000 pixels (in width or height)

 

2. Duplicate any files that meet any of those guidelines and add text (such as "_RESIZE") to the end of the filename.

 

Then, with those duplicated images...

 

3. If image is longer (in width or height) than 4000 pixels, downscale it to 4000 pixels.

 

3a. (Optional step, but if I could get this to work it would be amazing...) However, if rescaling the larger value to 4000 pixels would result in the smaller of the two dimensions being less than 2000 pixels, resize the smaller value to 2000 pixels and allow the larger dimension to be greater than 4000 pixels.

 

4. Convert the file to a .tga

 

...Is this at all possible?  Thanks for your help!


Viewing all articles
Browse latest Browse all 99971


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