Mobile app version of vmapp.org
Login or Join
Margaret771

: Exporting groups of layers from a PSD to a single PNG file using Photoshop What is the fastest way by which I can save a group of layers as a single .png file with empty spaces around the

@Margaret771

Posted in: #AdobePhotoshop #HowTo #PhotoshopScripting

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?

10.09% popularity Vote Up Vote Down


Login to follow query

More posts by @Margaret771

9 Comments

Sorted by latest first Latest Oldest Best

 

@Connie430

Simply select the group, and go to Layers > Quick Export as PNG (Shift + CMD/CTRL + ') that will automatically merge the group's content and export it as PNG. Hope this helps.

10% popularity Vote Up Vote Down


 

@Rambettina927

Ok this is cool. Group your layers into a single group then right click the group in the layers palette and choose 'export as'. You get to choose scale, format and quality. The resulting image will be named the same as the name of your group.

Now the really cool bit. If you have lots of layers in lots of groups - shift (or control) select the groups you wish to export and then do the same as above (by right clicking on any of your selected groups). They will all be exported at once and will be named the same as your groups.

This all works with single layers or grouped layers too. Just select whatever you want in the layers palette.

10% popularity Vote Up Vote Down


 

@Ann6370331

Another method to do this is to create "Layer Comps" and from scripts export each Layer Comp as a file.

I'm sorry, I'm new here, so I do not know how to put in advanced formatting and images, so my answer may seem pretty empty.

10% popularity Vote Up Vote Down


 

@Murray664

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.

10% popularity Vote Up Vote Down


 

@Shakeerah625

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.




Works like a charm and offers many different formats!

10% popularity Vote Up Vote Down


 

@Margaret771

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.

10% popularity Vote Up Vote Down


 

@Cofer715

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.

10% popularity Vote Up Vote Down


 

@Reiling762

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.

10% popularity Vote Up Vote Down


 

@Cugini998

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?

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme