Export layers to files script but with 'trim' option ?

Community Beginner ,
Jun 08, 2017

Copy link to clipboard

Copied

Hi guys,

I' guess I'm not the only one who got stuck with this one....So far I was not able to use the Adobe script so it can add the 'trim option' like it was previously possible in older photoshop version, I'm not quite sure which one but I remember the 'trim' option was available.. this was awsome.

Right now what I understand is that the new way to export layers to file cannot add the trim option becuz the script was not design that way.

So is there any of you who know the way around this problem ?

I don't mean like 'exports layers to file' and then start a batch process to trim the images afterward, cuz this is my solution right now, I mean a single script that does the work all at once ?!

Thank for your help guys.

TOPICS
Actions and scripting

Views

505

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Export layers to files script but with 'trim' option ?

Community Beginner ,
Jun 08, 2017

Copy link to clipboard

Copied

Hi guys,

I' guess I'm not the only one who got stuck with this one....So far I was not able to use the Adobe script so it can add the 'trim option' like it was previously possible in older photoshop version, I'm not quite sure which one but I remember the 'trim' option was available.. this was awsome.

Right now what I understand is that the new way to export layers to file cannot add the trim option becuz the script was not design that way.

So is there any of you who know the way around this problem ?

I don't mean like 'exports layers to file' and then start a batch process to trim the images afterward, cuz this is my solution right now, I mean a single script that does the work all at once ?!

Thank for your help guys.

TOPICS
Actions and scripting

Views

506

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 08, 2017 0
Adobe Community Professional ,
Jun 08, 2017

Copy link to clipboard

Copied

I suppose you could create you own export script, perhaps cycling through the layers, turning the on the visibility for just that one layer, duplication the file with merge visible, then add the trim command in. Most all could be done using scriptlistener to get your general code.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 08, 2017 1
Community Beginner ,
Jun 08, 2017

Copy link to clipboard

Copied

Thanks Chuck for reply,

I don't know how to script this...

Do you know if there some script out there that can do that ?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 08, 2017 0
New Here ,
Sep 17, 2020

Copy link to clipboard

Copied

Try to use png-24 in File Type

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 17, 2020 0
Adobe Community Professional ,
Jun 08, 2017

Copy link to clipboard

Copied

Offhand, I don't know of any. I tend to make my own custom scripts rather than relying of other scripts. It's good to look at other scripts for how things are done. If you're new to scripting, start with doing simple things, then build on that. Using Scriptlistener is a good way to get code for many things. It's like recording an action that you can then modify and piece together other blocks of code.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 08, 2017 1
Adobe Community Professional ,
Sep 17, 2020

Copy link to clipboard

Copied

Yes if you use PNG-24 as suggested by GI87, then there is a Trim Layers option.

 

tl1.png

 

 

Another option is to select the layers in the layers panel. right click and Export As, which should Trim the layers.

 

tl2.pngtl3.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 17, 2020 0