Exporting multiple layers as PNG but keeping artboard dimensions

Explorer ,
Feb 24, 2019 Feb 24, 2019

Copy link to clipboard

Copied

Hey guys,

I need to export multiple layers as a PNG file with my artboard still being 1920 x 1080 but is there a way to do this in one go?

For example: I highlight all layers > Right click layers > Export As > Change 'canvas size' to 1920 x 180 > Export all.

Though the problem with this, is that;

1 - I have to do each layer manually

2 - The image is in the centre when saving

I know I can save as > png. And this will save the whole dimensions regardless where the layer is positioned in the canvas.

Is there a way to save the project as a PNG but all layers are it's own file and keeping it's artboard dimensions?

Views

18.9K

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Community Professional , Feb 24, 2019 Feb 24, 2019
I have tested just before writing this reply and everything works fine with Export Layers to Files. Photoshop is exporting layers with Artboard dimensions as I believe you want.Here are exported PNG files

Likes

Translate

Translate
Adobe Community Professional ,
Feb 24, 2019 Feb 24, 2019

Copy link to clipboard

Copied

If I can understand what you want then try to create layer comps (Window > Layer Comps) then use File > Export > Layer Comps to Files. If you want each layer separately without background included then use Layers to Files from the same menu. Uncheck Trim Layers when setting export PNG options.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 24, 2019 Feb 24, 2019

Copy link to clipboard

Copied

Thanks for the response.

I did what you told me, but it doesn't save the layers as individual png files but as one png file, just like doing it as save as > png.

I assume to get what I want, I have to save each layer individually?

For example:

Only make the layer visible, other layers hidden > save as > png > save > hide layer > unhide layer > save as > ..... rinse and repeat

or

Have each layer comp with only 1 visible layer

For example below, its a 1920 x 1080 artboard, but it saves the whole dimensions of the artboard not just the dimensions of the layer which I want.

If I export layer as PNG it only saves the dimensions of that layer not the artboard (picture 2). I have so many layers, doing it one by one is going to be a headache.

What I want

1.png

What I DONT want

Group 3.png

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Feb 24, 2019 Feb 24, 2019

Copy link to clipboard

Copied

Which method you are referring that does not work? Export Layer Comps or Export Layers to Files? Which version of Photoshop you are running?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 24, 2019 Feb 24, 2019

Copy link to clipboard

Copied

I am using 20.0.3

I did both

Export > Layer Comps to files: Exports the comp in one PNG file in the 1920x1080 dimension I wanted

Export > Layers to Files: Exports all images to PNG but doesn't export in the 1920x1080 format.

The reason why I want individual PNG files of the layers but keep the artboard dimensions, I have to import these PNG files in another non-adobe program, so me dragging and dropping the files would make it so much easier for me, instead of re-arranging the layers again in their position again.

But if it can't be done, i guess i have to do each save individually.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Feb 24, 2019 Feb 24, 2019

Copy link to clipboard

Copied

I have tested just before writing this reply and everything works fine with Export Layers to Files. Photoshop is exporting layers with Artboard dimensions as I believe you want.

layers-to-files.gif

Here are exported PNG files

exported png files.jpg

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 25, 2019 Feb 25, 2019

Copy link to clipboard

Copied

Thanks!

This is exactly what I did, but I assume I had 'trim layers' checked.

But yes this is the answer! I did a test run just then and it worked perfectly!!!

Thankyou!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 25, 2020 Jan 25, 2020

Copy link to clipboard

Copied

Why do I keep getting white backgrounds and not transperent png's?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 11, 2020 Feb 11, 2020

Copy link to clipboard

Copied

I had the same issue creating a transparent background and I found a solution! 🙂

When creating an artboard, go to its properties window and select transparent background!

 
 

image.png

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 30, 2022 Jan 30, 2022

Copy link to clipboard

Copied

I have the same problem and I did exactly what you did, but it still doesn't work. Can you help me?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 22, 2022 Feb 22, 2022

Copy link to clipboard

Copied

This made the difference to me, clicking off the trim layers, worked well after that

 

Screen Shot 2022-02-23 at 11.35.41 am.png

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 27, 2022 Feb 27, 2022

Copy link to clipboard

Copied

Hi when exporting layers to files it suddenly stops and comes up with these errors messages ? 

Can someone please help 

20220227_080944.jpg

20220227_080937.jpg

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Feb 27, 2022 Feb 27, 2022

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 27, 2022 Feb 27, 2022

Copy link to clipboard

Copied

Hi , when exporting layers to files i keep getting this message come up, how do fix this.

 

Thanks 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 18, 2022 Apr 18, 2022

Copy link to clipboard

Copied

I was having this issue and never expected "Trim Layers" to be the culprit.  Thanks sincerely!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 29, 2022 Apr 29, 2022

Copy link to clipboard

Copied

Greetings virtually!  My name is Jake Stone and I'm late to this thread . . but am having a simialr issue.   I want to export ALL my layers as individual Aseets AT THEIR layer file size, NOT the artboard size.  So here, the second image that you said you DONT want to do is what I need to do so I can hand off my UI elements to a developer who is going to pull them into X-Code.  I'm using PSD CC 2022

 

Let me know if I need to be more clear on what I'm asking for.   I've already tried tha batch process, export to files, export comps to files and all three methods get me the exported layers to files BUT AT the entire art board size, not the individual size of each layer which should be around 72 - 140 px depending which asset is is. 

 

Thank you SO much !  \

 

Cheers, 

 

Jake 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Apr 29, 2022 Apr 29, 2022

Copy link to clipboard

Copied


@Jakobiie102 wrote:

I want to export ALL my layers as individual Aseets AT THEIR layer file size, NOT the artboard size.


 

Jake, select/target/highlight all required layers in the layers panel, contextual/right click on one of the highlighted layer names in the layers panel and select Export As (or Quick Export if it is setup as you need). Each layer should be automatically trimmed of transparency.

 

Another way is Generator:

https://helpx.adobe.com/photoshop/using/generate-assets-layers.html

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 02, 2022 May 02, 2022

Copy link to clipboard

Copied

LATEST

THANK YOU SO MUCH 😃 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 24, 2020 Sep 24, 2020

Copy link to clipboard

Copied

Just wanted to let you both know I had an issue with and the discussion you guys had on this forum really helped me out. I have trim layers on myself. Thanks!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines