Photoshop: Layer(s) / Group(s): Export As... Unwanted Trimming

  • 2
  • Problem
  • Updated 5 months ago
  • (Edited)
When you right click on one or multiple layers or groups in from the Layers panel there is an "Export As..." feature in the popup menu. This dialog has the unique feature of being able to export one or more groups which will be merged to 1 file per group. I really like this and want to use this a lot for my work.

However, this dialog enforces a crop on each group (trimming) and there is no why of turning this off. I already made a post about this on the adobe forums with an example on why this can be unwanted and frustrating: found here!

I want my work exported as is: What You See Is What You Get. And not altered by cropping and then centering it.

This version of the dialog is also behaving differently then the one from File->Export->Export As.... That one exports the whole image but does NOT trim the image. So the same dialog is behaving inconsistently on both versions. It's up to us users to figure all this out!

The File->Export->Layers As Files has a "Trim Layers" checkbox. As a solution I would like to recommend putting a checkbox like this on the "Export As..." dialog (both versions) as well!

Thank you!
Photo of AliasMe

AliasMe

  • 3 Posts
  • 2 Reply Likes
  • Frustrated

Posted 5 months ago

  • 2
Photo of Max Johnson

Max Johnson, Champion

  • 467 Posts
  • 215 Reply Likes
If export as per group works like the asset generator you can force padding with a larger layer mask. On phone, so can't verify.
Photo of AliasMe

AliasMe

  • 3 Posts
  • 2 Reply Likes
Thanks for your reply! If I just add a mask to a layer of a group, the problem will not resolve! Perhaps you can elaborate a little on how to set this up?

A known work around is to put a near alpha pixel in both the left-top corner and the bottom-right. But for my projects it's important not to have these artifacts because the software that i'm using selects on 100% alpha. so an alpha of 254/255 will still give problems.

Alternatively you can duplicate all groups, merge the duplicated groups, hide all the other layers and groups and then use File -> Export -> Layers to files. But this is time consuming and a choir if you have to do this a lot, especially if you have a lot of groups. Also on big files the process taks a long time because it's just a macro that rearrange the layers and groups physically in the Photoshop itself.
Photo of Max Johnson

Max Johnson, Champion

  • 460 Posts
  • 212 Reply Likes
Drat. Well, the "Asset Generator" is a bit like an automated version of the "Export-As..." on a group or layer, but it uses the layers' names as a trigger, filename, and scale settings. As a bonus, it allows for making an auto-exporting template if you have a standard format that just changes content. I'll link some documentation, but the TLDR; version is this:

1. In a saved PSD, rename a group or layer with the file name you want plus ".png" on the end like "myRadCorgie.png"
2. Go to File-->Generator-->AssetGenerator and click that to turn it on.
3. Find your PSD file in finder or explorer and you will now see a folder with the psd's filename + "-assets". In that you will find your exported myRadCorgie.png
4. Go to File-->Generator-->AssetGenerator and click that to turn it off. If you don't, it will re-generate the exports every time you touch those layers and that can really slow down your workflow.
5. You can also specify scaling or size by putting it at the beginning of the layer name like "50% myRadCorgie.png"

more info here:
https://helpx.adobe.com/in/photoshop/using/generate-assets-layers.html
and here:
https://blogs.adobe.com/samartha/2013/09/a-closer-look-at-the-photoshop-generator-syntax.html
Photo of AliasMe

AliasMe

  • 3 Posts
  • 2 Reply Likes
Okay, the first thing I tried was to add a Mask to the a layer in the group. This didn't work. But by adding the layer to the group itself it did!. It works for both the "Export As..." dialog from the layers right click menu (that's the one from my question) and also for the "Asset Generator". 

So it seems that your first comment is the correct solution, I just put the mask in the wrong place.! Thanks a lot for sharing. Also, thanks for the exploration of the Asset Generator. This seems like a tool I really want to use! :D