Hi all!
I've been trying to do this for a while and I'm stumped, so I'd like to know if it's even possible. I'm trying to fathom out how to create an action which…
So I can batch process a ton of images.
I managed to do something like what I'm after but the thing I'm having trouble with is that the original images will have different dimensions.
I have attached (via link) an example image which would be the original (start.jpg), one which would be the desired end result (done.jpg) and the .psd
IF there needs to be a step in the middle of the action where I need to intervene and resize the flat image slightly to fit the canvas it'll still save a load of time.
I know that opening and saving will be taken care of using the batch feature and the result only needs to be a jpg.
Any input will be welcomed!
Here are the working files - http://mikeebee.com/dl/action-test.zip
Many thanks
This Script would select one or another Action depending on whether the active image is wider than high.
You have to insert the correct names for the appropriate Action and Action Set, though.
// 2012, use at your own risk;
#target photoshop
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
if (myDocument.width > myDocument.height) {
app.doAction("Canvas landscape", "bfunk")
}
else {
app.doAction("Canvas portrait", "bfunk")
}
};
If you want to give it a try, paste the previously posted text into a new file in ExtendScript Toolkit (part of Photoshop’s installation, Applications/Utilities/Adobe Utilities/ExtendScript Toolkit CS4 or /Applications/Utilities/Adobe Utilities-CS5/ExtendScript Toolkit CS5) and save it as a jsx-file into Photoshop’s Presets/Scripts-folder.
After restarting Photoshop the Script should be available under File > Scripts and can be assigned a Keyboard Shortcut directly, recorded into an Action, (in CS4 and CS5) be used in a Configurator-Panel or started from ExtendScript Toolkit directly.
That's an interesting action, but I thought the expected output was different than what this action produces. First, I didn't think image cropping would have been ok (maybe the OP expects this or is ok with cropping). Secondly, I kept getting caught up in how the right edge was going to actually be skewed (as decreasing in size perspectively off into the distance). This action appears to just visually trick the eye (again which may be what the OP wanted or is ok with). Like I said, just that aspect alone is where I kept getting stuck in how this would be possible without some manual manipulation.
If you take this image http://www.shan-dysigns.com/userForums/photoshop/stripes.jpg and perform this action, you will see how the right side doesn't actually get skewed (as I thought was part of the visual effect wanted). Still, this action is quite nice.
North America
Europe, Middle East and Africa
Asia Pacific