• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Community Beginner ,
Jun 08, 2017 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

1.3K

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
community guidelines
Adobe
Community Expert ,
Jun 08, 2017 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.

Votes

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
community guidelines
Community Beginner ,
Jun 08, 2017 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 ?

Votes

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
community guidelines
New Here ,
Sep 17, 2020 Sep 17, 2020

Copy link to clipboard

Copied

Try to use png-24 in File Type

Votes

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
community guidelines
Community Expert ,
Jun 08, 2017 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.

Votes

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
community guidelines
Community Expert ,
Sep 17, 2020 Sep 17, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines