Cropping From Selection/Alpha Channel

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: xbytor, DavideBarranca, Paul MR

DavidRamsay
Posts: 1
Joined: Thu May 10, 2018 8:31 am

Cropping From Selection/Alpha Channel

Postby DavidRamsay » Thu May 10, 2018 9:13 am

Hi All,

Gonna do my best to explain this as clearly as possible and thanks in advance for any assistance.

I have an issue where two clients would like different crops of the same images sent to them periodically throughout the job, one is cropped full frame, the other cropped in.

The files can be pretty huge so in an ideal world I would like a solution that means I only have to open each file once, I have a script/action that does all I need for files that need no cropping, the trouble I am having is automating this second crop. Im pretty sure its very simple but I am having no luck.

I have tried doing it with just an action where I make an alpha channel of the selection for the second crop, In theory I feel this should work but in practice the action seems to fail to record that its the alpha channel from the CURRENT document I would like to use and instead crops based on the selection used to record the action. After a little research I am wondering if I could use layer comps to achieve this too, turning on a solid colour fill border and then trimming.

I know this would be so much better achieved with a script but it is beyond my abilities so I would appreciate any help anyone can offer.

What I would like to achieve is:
Open
convert to16 bit
flatten
convert to 8 bit
duplicate image
run my script to resize (for full frame crop)
save as and close
crop to alpha channel selection
run my script to resize
Save as and close

Maybe others have a better way of achieving this so I am open to ideas.

Thanks very much
David

Return to “Help Me”

Who is online

Users browsing this forum: No registered users and 2 guests