Saturday, September 24, 2016

Layers to png with names in Photoshop


I am looking for a way to export all layers (nested too if possible) of a PSD file to png. But just the layer, with it's current size, not in the document size, with background or other layers.


I tried the script in this answer: Batch export Photoshop layers to individual PNG files


but it generates the png with background and the size of the document.


I need that if my file has buttons or small things, they export with the current layer size and name to png.


Thanks!



Answer




If you have Photoshop CC or CC 2014, you might be best off using the native Adobe Generator. In the future, it's going to have svg export too. Currently that's experimental feature.



List of "asset" export plugins:



I'm not very fond of Adobe Generator because sometimes, even if you haven't enabled it and you save a .psd document that has extensions in the layer names, such as mylayer.jpg, it'll try to save the assets ...and they come out corrupted or something. It can be fully disabled through the preferences though, so it's not an issue when I'm using Slicy instead.


The only ones I have used and would recommend are: Adobe Generator, Slicy and Cut & Slice Me. Although I'm not the biggest fan of the way you mark layers with Cut & Slice Me.


No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...