Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for professional graphic designers and non-designers trying to do their own graphic design. It's 100% free, no registration required.

I have a file with about 80 layers that I want to export to png's. That bit I know how to do but what I'm stuck with is how to include the background layer with every layer being exported? Each layer is on a transparent background but I want them all to have a logo which I only have on the base layer. Am I making sense? Any help appreciated!

Thanks

share|improve this question
add comment

6 Answers

An automated, easy solution

  1. Use the FileScriptsExport Layers to Files script. This will export each layer of your document as a separate file with a filename that matches the layer name (so ensure your layer names are correct before running the script). Make sure you use a lossless 24bit format, like PNG (with 8bit alpha).

  2. Delete the exported file that's the background layer. I assume you won't be needing it :)

  3. Copy the background layer to the clipboard.

  4. Create an action that pastes and reorders the layers so the pasted layer is in the background.

  5. Run the action on all the files you exported.

If you need more detail on any of the steps, please let me know.

share|improve this answer
    
+1 For 80 files, this is the way to go. For only a few I would have gone with layer comps (or if the set needs to stay flexible, like a icon set in development). –  KMSTR Aug 15 '12 at 5:16
    
@KMSTR: Using Layer Comps and then File—>Scripts—>Layer Comps to Files is not a bad way to go. Fist create a Keyboard shortcut for Layer Panel menu > New Layer Comp and then quickly turn off/on the "changing" layer, then hit the mapped Keyboard short and repeat. If there's 80-100 and it take about 2 seconds to press the key and turn on and off the layer he should be done within 3-4 minutes and then can use the script without all that extra clean-up as they will be the final as requested. Cheers! –  Kevin Bomberry Aug 15 '12 at 7:25
    
This worked like a champ. Brilliant solution. –  Lauren Ipsum Oct 24 '13 at 20:16
add comment

You can hold the alt key, and click the eye icon for the corrispondent layer, that will switch off everything but your layer, then reveal also the background layer (switch on the eye icon of it.)

share|improve this answer
add comment

When you save a png any visible layers will be in the file. Simply leave the background layer visible along with whatever other layer/ you want to save, and hide any number of layers you don't want to see!

Hope this helps!

share|improve this answer
add comment

If you have Adobe Illustrator here is what you need to do.

You need to save your file in Illustrator format.

Download the script for exporting the png files while keeping certain layer visible (it does exactly what you want but in Illustrator): script

Then you need to add + to the background layer name (it will make your background appear in all your exported images -- you can read more about it in the link.)

Change all the layer names to something other than the default name.

go to

File->Scripts->Export-Layers-as-PNG

Pick a location and you are done (for me it only works if i pick the location to be my desktop).

If you don't have Illustrator then you need to find/learn how to make/ask me to make/ a script that will do the same thing as the illustrator script does but for Photoshop.

You can try running the script with Photoshop by putting it in the Photoshop script folder and then going

 File->Scripts->Export-Layers-as-PNG

but it did not work for me.

good luck :)

share|improve this answer
add comment

I was going to suggest using the Timeline to do it and export each of the frames as a PNG, but in response to KMSTR, using Layer Comps and then File—>Scripts—>Layer Comps to Files is not a bad way to go actually.

First, create a Keyboard shortcut for Layer Panel menu > New Layer Comp (you can do this in Window—>Workspace—>Keyboard Shortcuts and Menus...).

Next, be sure your background layer is visible, then quickly turn off/on the "changing" layer(s), then hit the mapped Keyboard short and repeat turning off/on the changing layers and pressing the mapped shortcut.

If there's 80-100 and it take about 2 seconds to press the key and turn on and off the layer you should be able to make all of the comps in less then 5 minutes and then can use the script to generate what you want (files with background and selected visible layer—as layer comp) without all that extra clean-up (deleting, and then remerging with another action/script).

I hope this helps. Cheers!

share|improve this answer
add comment

I've been looking for a solution for this myself.

I am an event photographer and I import images into a template that has a layer with the event name. I print them out one at a time but at the end of the event, I would like to save all images with the top layer. For THIS part of the process, I could have the top layer in a separate file and create an action but I was wondering if it would be possible to do it all in one shot.

So the text (or could be an image like a logo that should be applied to each individual layer) would be on top as layer 1. I'd want as an automated action:

layer 1 combined with layer 2 and saved as a single image, then; layer 1 combined with layer 3 and saved as a single image, then; layer 1 combined with layer 4 and saved as a single image, etc. etc

share|improve this answer
    
Hi George, somebody flagged this as "not an answer". To be honest - I can't tell if it is an answer or if you're commiserating with the question or ??? If this is an answer that solves the problem posed in the question, can you please edit it to be more clear? Thanks! –  Farray Sep 27 '12 at 23:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.