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

Looking 4 Script: Export Layers to Files + Crop Layers

New Here ,
Jan 11, 2009 Jan 11, 2009
I am aware that Photoshop has the Export Layers to Files script, however, the script does not crop the actual layers to their size... is there a script/action that adds the extra function of Cropping the layers when they are exported as files?

Thanks.
TOPICS
Actions and scripting
1.3K
Translate
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 ,
Jan 15, 2009 Jan 15, 2009
Im not sure about where exactly to integrate that in the »Export Layers To Files«-Script, but trimming an image is not so hard via Script:
var myDocument = app.activeDocument;
myDocument.trim(TrimType.TOPLEFT, true, true, true, true);
Translate
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
Valorous Hero ,
Jan 15, 2009 Jan 15, 2009
You might be better with:-
app.activeDocument.trim(TrimType.TRANSPARENT);
As if you use app.activeDocument.trim(TrimType.TOPLEFT, true, true, true, true);

It could be removing something that is wanted.
Translate
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 Employee ,
Mar 01, 2009 Mar 01, 2009
LATEST
If you look in the "Export Layers to Files..." script that ships with CS4 there's an example for doing this at around line 1000.
Translate
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