Skip to main content
Participant
March 14, 2011
Answered

Auto crop each layer before exporting layers to files

  • March 14, 2011
  • 2 replies
  • 7970 views

The built in "Export layers to files" script doesn't crop the exported jpeg to the size of the image on each layer.  Instead, it keeps the original photoshop file size and puts white around that layer's image.  Is there a script that will crop to the layer size before doing the export for each layer?

This topic has been closed for replies.
Correct answer Michael_L_Hale

I modified the original Adobe Export Layers to Files.jsx to support trimming layers with transparency when exporting to jpeg.

Because of it's size you can find the modified script at http://ps-scripts.com/bb/viewtopic.php?f=10&t=3971

2 replies

JR234
Participant
February 11, 2016

The links above are broken so I reuploaded the script.   https://mega.nz/#!elpCzJqD!kNX5lfR0SheeIuwhzo1nXC8-FbdmJvwPj9FPjk17FVs


Michael_L_HaleCorrect answer
Inspiring
March 14, 2011

I modified the original Adobe Export Layers to Files.jsx to support trimming layers with transparency when exporting to jpeg.

Because of it's size you can find the modified script at http://ps-scripts.com/bb/viewtopic.php?f=10&t=3971

Participant
March 14, 2011

Thanks Michael - that's just what I wanted.