I‘m trying to export individual layers in Photoshop as PNGs, keeping their size. So if I have a layer that is 200×200 in a composition that is 1000×1000, I want to export just that layer as a PNG at 200×200. Is it possible?
5 Answers
I'm not sure this question is on-topic, but it's the first question on the site, so here we go:
What you're looking for are layer based slices.
- Select the layers you want to export, go to Layer > New Layer Based Slice(s)
- Go to File > Save for Web & Devices...
- When saving, choose "All User Slices"
If you have overlapping layers, which you will have more often than not, you might have to repeat the process a few times, hiding certain layers each time.
File→Script→Export Layers to Files...
Make sure that Trim Layers is checked before exporting. This will save a 200×200 layer within a 1000×1000 composition as a 200×200 PNG file.
-
Hey, I have tried this, but I don't have the scripts option in file. I have Photoshop 6. How can I fix this? Commented Nov 13, 2015 at 0:45
-
@RuchirBaronia I'd suggest you to consider checking out
File -> Export -> Layers to Files
.– ArtfaithCommented Jan 18, 2021 at 2:44
One thing you can do is:
- Hide everything you don't want to see (option click the "eye" icon of your chosen layer)
- Select all
- Copy merged
- Create a new file (it'll automatically be the size of your clipboard, which should have resized to the size of actual pixels in your selection)
- Paste and save as a PNG
- Repeat!
There are scripts for this if you have an insane amount of layers, but an initial Google search didn't turn up a whole lot of these.
Solution number 1:
Draw a Marquee selection around the element; choose Edit → Copy Merged File → New; hit Return; “Paste.”
now you have your element ready to be saved in png format
Solution number 2:
right click on the layer (or group of layers) choose to duplicate the layer (or group) choose New as a destination
and you get a new document with your layer(s)
:)
Select Layer and go to Layer → Export As in CS6.
-
This is now the most relevant answer (IMO). I'm currently running CC 2017 and this option is still there. Commented Feb 21, 2017 at 17:04