Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

What is the fastest way by which I can save a group of layers as a single .png file with empty spaces around the group of layers trimmed. I know I can run a script to export every single layer to a .png file, but can I set it to extract only selected layers and save them in one .png file?

share|improve this question
    
The difficulty of all the answers relative to just using Fireworks in the first place makes it really obviouls what a mistake Adobe has made discontinuing FW. –  Amy Blankenship May 8 '13 at 3:00

6 Answers 6

Try turning off the layers you don't want and saving as a .png file with save for web. That way you have a little control on the final resolution output. Or are you looking for a batch type of saving method?

share|improve this answer
    
not the best thing to do when there are like a hundred layers and many more sublayers inside. yes, a script!! is there a script for the love of god?! –  shyambhat Jan 12 '12 at 9:50
    
Yes, a script would be great for this, but in playing devils advocate, how would the script know which layers to ignore? just curios are they the same layers in all images? If so possibly photoshop comps would be a way to go. –  danferth Jan 12 '12 at 16:39
  • Select the particular layers you want to save as a .png file
  • press Ctrl+e (that'll merge them into a single layer)
  • select all and copy
  • press Ctrl+n to create new file.

The default option in Photoshop is that the size of the new file will be the same as what you've in clip-board. In this case, it'll give you a size with the empty spaces trimmed.

Now paste your clip-board content and save as .png.

share|improve this answer
    
merging into a single layer and slicing it is as good as dragging them all into a new blank psd file. i'm not able to get the default size of the new blank file to the size of the layers in the clipboard though. is there a setting i need to do? i'm using CS5 on a mac. –  shyambhat Jan 12 '12 at 9:32
    
It's about speed @Shyam. Slicing is a manual process and is slow and there are chances of error in identifying transparent pixels. The process I'm talking about is as simple as "ctrl+a", "ctrl+c", "ctrl+n", "enter", "ctrl+v", "ctrl+alt+shift+s". Here, photoshop identifies all transparent pixels automatically and gives you the perfect bounding box size automatically. –  Prabin Pebam Jan 12 '12 at 15:21
    
I'm not a mac user but for windows, make sure that the preset option in the "create new file" dialogue box is set to custom to get the clipboard size. Refer point no 5 in the link –  Prabin Pebam Jan 12 '12 at 15:24

You can record an action such as:

  • first select the layers you DON'T want to see/export.
  • choose "group from layers..." in the layers palette menu name it something like FOOTEMPLAYERSGROUPBLARGLE
  • hide the group
  • {...}
  • export
  • close, NO SAVE (the grouping will re-arrange those selected layers in first step)
  • OR instead of close, no save, REVERT
  • {profit}

EDIT:

AND after you record it, then you merely crop to the area you want, select the layers you don't want, and then run the action.

share|improve this answer

Make only the layers you want to use visible, then go to File > Save for Web & Devices. Once there select .png from the dropdown menu. You will now have the ability to tweak many of the settings (color depth, quality, etc.) including transparency. This keeps your original file as is and creates a new file with your desired settings. Good luck.

share|improve this answer

Found this script called Layer Saver when searching for a solution to this same problem.

This script will allow you to save layers/layersets to different formats PNG, PSD, PDF, TIF, JPG or JPG Save For Web. A different menu is given depending if only layers or layersets found.

enter image description here

Works like a charm and offers many different formats!

share|improve this answer
    
Can you please explain in a few words what the script is doing? Your answer forces one to leave this site... –  Kurt May 7 '13 at 23:51
    
Hi Mary! I added a short quote and image from that site so it's easier to see what the script does. Feel free to re-edit or add more info if you think it's important. Welcome to GD.SE! –  Yisela May 7 '13 at 23:57

My solution is :

  • Select the required layers & disable all other layers
  • select trim from image>trim
  • Save this as a .png file using File > Save as
  • undo Trim action using Ctrl+Alt+Z
  • Repeat for other layers.
share|improve this answer

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.