Is it possible to add conditions to actions or scripts.
The problem I'm trying to solve is to resize or adjust the canvas size of a directory of pictures to exactly 6"x4".
I know I can resize in bulk setting a maximum long edge of 6" but I don't know how I can adjust the canvas size on the other edge in bulk to exactly 4"
In pseudo code I want something similar to:
if (width < 4") canvas width = 4" black
else if (height < 4") canvas height = 4" black
Well for Canvas Size all you have to do is create an action that includes Canvas Size and plug in the sizes you want and click the Relative box then save the action. That just cuts or expands the canvas. I am sure you would have to make one for Portrait and one for Landscape though and just sort them in Bridge
Well for Canvas Size all you have to do is create an action that includes Canvas Size and plug in the sizes you want and click the Relative box then save the action. That just cuts or expands the canvas. I am sure you would have to make one for Portrait and one for Landscape though
But is the problem with this that you would would need to have seperate landscape and Portrait format actions? Then I would still need to manually select all the appropriate orentation images and run the specific action for that orientation? I'm talking about thousands of images so this would be a time consuming exercise
It's not too hard if you have any javascript or visual basic background at all. You have to create a script (in CS2, they go in Adobe Photoshop CS2/presets/scripts). I found some sample scripts there, and then googled "adobe photoshop scripts") and got tons of info on sample scripts and was able to create several scripts. I don't remember how I found the best resource, but I think it was an official Adobe document on creating scripts and it listed all the possible commands & system variables.
It's not too hard if you have any javascript or visual basic background at all. You have to create a script (in CS2, they go in Adobe Photoshop CS2/presets/scripts). I found some sample scripts there, and then googled "adobe photoshop scripts") and got tons of info on sample scripts and was able to create several scripts. I don't remember how I found the best resource, but I think it was an official Adobe document on creating scripts and it listed all the possible commands & system variables.
Fantastic, I will look into this then, I was a C++ and Java programmer for 10 years so this sounds great.
I'd read somewhere about .js scripts in Photoshop but didn't know what was possible. I'll google it.
It's not too hard if you have any javascript or visual basic background at all. You have to create a script (in CS2, they go in Adobe Photoshop CS2/presets/scripts). I found some sample scripts there, and then googled "adobe photoshop scripts") and got tons of info on sample scripts and was able to create several scripts. I don't remember how I found the best resource, but I think it was an official Adobe document on creating scripts and it listed all the possible commands & system variables.
Hey, thanks for the info BB! I wasn't aware that Photoshop has built-in scripting support.
Maybe easier is going in Bridge...selecting the folder everything is in...select all...Go to View and Sort...by Dimension...then run your action for that one.
It's not too hard if you have any javascript or visual basic background at all. You have to create a script (in CS2, they go in Adobe Photoshop CS2/presets/scripts). I found some sample scripts there, and then googled "adobe photoshop scripts") and got tons of info on sample scripts and was able to create several scripts. I don't remember how I found the best resource, but I think it was an official Adobe document on creating scripts and it listed all the possible commands & system variables.
Hey, thanks for the info BB! I wasn't aware that Photoshop has built-in scripting support.
No problem Mick! I've found the scripting to be really useful.
Kevin - Let me know if you solved your problem, otherwise I'll find some time today to try to help. Sounds like with your background you should be all sorted.
Kevin - Let me know if you solved your problem, otherwise I'll find some time today to try to help. Sounds like with your background you should be all sorted.