Skip to content

This script allows you to export your layers as individual JPGs / PNGs at a speed much faster than the built-in script from adobe.

License

Notifications You must be signed in to change notification settings

jsguru-git/Photoshop-Export-Layers-to-Files-Fast

 
 

Repository files navigation

Photoshop-Export-Layers-to-Files-Fast

This script allows you to export layers in your Photoshop document as individual files at a speed much faster than the built-in script from Adobe. So far it does not feature all the formats that the built-in version does, but more can be added easily upon request. Feel free to contribute to it and make it even more powerful!

Please, consider donating a modest sum if you enjoy using our script regularly and would like to see more features implemented sooner.

This script was originally built as a response to a question on graphicdesign.stackexchange.com.

Make sure to download all files:

Download as zip

Disclaimer: We are not associated with Adobe in any way. For any issues relating to Adobe products or Adobe scripts please contact them directly. We have never had an issue, but please use this script at your own risk. We are not responsible for any lost data or damaged PSDs so always make a back-up.

Features:

  • Supported export formats:
    • PNG (8 and 24 bit)
    • JPEG
    • Targa
    • BMP
  • Handles nesting in grouped layers.
  • Export either all layers or visible only.
  • Shows current progress and allows to cancel any time.
  • Shows proper layer count in advance.
  • Files are named either using layer names or automatic layer indices.
  • Lowest layer can be treated as common background.
  • Exported images can have layer size or canvas size (trimming option).
  • Last used dialog settings are remembered.
  • A selected group can be exported as usual (layer by layer) while everything else is left in tact. (This way variable content can be exported for complex fixed background and foreground.)
  • Can export groups as folder hierarchy. Conflicting folders are renamed.

You can also see what's coming next and browse some of our performance test results.

Requirements:

Adobe Photoshop CS2 or higher.

How To Use:

  1. Open Photoshop
  2. File -> Scripts -> Browse...
  3. Locate the file, and open it.

Alternatively move the script into the /presets/scripts directory, located by in your Photoshop folder.

Windows: /Program Files/Adobe/Adobe Photoshop VERSION/Presets/Scripts/

Mac: /Applications/Adobe Photoshop VERSION/Presets/Scripts/

Version History:

17 Sept 2018 by willena, finscn, jgod

29 April 2016 by Skjorn

  • The option "Groups as folders" exports layers in a folder tree (same as groups) instead of a flat list.

05 May 2015 by Skjorn

  • A selected group can be exported as usual (layer by layer) while everything else is left in tact. (This way variable content can be exported for complex fixed background and foreground.) Works only for the first selected group! If no layer/group is selected, the topmost one is assumed by Photoshop. All parent groups of the selection are made visible. Visibility of exported layers is not taken into account; all are exported.

25 April 2015 by Hanna Walter and Skjorn

  • Last user settings remembered for versions CS 3 and higher.

21 November 2014 by Skjorn

  • Added option to strip extensions from layer names and made default.

26 September 2014 by Skjorn

  • Added layer trimming.

01 August 2014 by Skjorn

  • Lowest layer can be treated as common background.

10 July 2014 by Skjorn

  • Added BMP support.
  • Enabled using layer indices for file names.
  • Optional file name prefix.

23 June 2014 by Skjorn

  • Added progress bars with cancel buttons.
  • Slow layer retrieval sped up and moved at the beginning.
  • Dialog shows the correct layer count.

08 June 2014 by Skjorn

  • Script renamed to match the built-in version.
  • The dialog extended.
  • Destination folder made selectable.
  • Added an option to export only visible layers and fixed visibility toggling after export.
  • The script made faster!
  • The document doesn't have to be saved and be a layered PSD anymore. Exporting from a temporary working copy is fine.
  • Major rewrite of internals.

22 May 2014 by Skjorn

  • Added support for Targa (TGA).

02 December 2013 by Justin Wang

  • Added support for both PNG-24 and PNG-8

24 May 2013 by Hanna Walter

  • Nesting properly handled
  • All layers save seperately again (no more stacking).

27 March 2013 by Robin Parmar (robin(at)robinparmar(dot)com)

  • preferences stored in object
  • auto-increment file names to prevent collisions
  • properly handles layer groups
  • header added
  • code comments added
  • main() now has error catcher
  • counts number of layers
  • many little code improvements

26 Sept 2012 by Hanna Walter

  • Original version

Contact:

Please use communication channels on GitHub to write feedback/bugs/suggestions: https://github.com/hsw107/Photoshop-Export-Layers-to-Files-Fast/issues

About

This script allows you to export your layers as individual JPGs / PNGs at a speed much faster than the built-in script from adobe.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%