Photoshop - Generate - Image Assets intermittently ignores masks when generating assets

  • 4
  • Problem
  • Updated 2 months ago
I've been dealing with this quirky behavior for months:

When apply vector or pixel masks to layers that are generating web assets, the masks will sometime be ignored and the generated assets are incorrect. Sometimes generator  renders the change immediately , and other times it takes a few seconds, and frustratingly often it never renders. When I say render I mean rendering the actual asset file as viewed in Bridge or the Mac finder window.

Work arounds include deleting and re-adding the masks or turning off- unchecking the menu item - "File/Generate", and then restarting Generate. 

I have created scripts for removing and re-adding all the masks in a multi-layer psd just to deal with this problem and even then sometimes generator ignores the masks - it seems to work better to go through each layer and delete the masks one at a time and then re-add it. 

Another scenario in which a mask misbehaves every time - and stops rendering correctly is this: 
  • Move a layer with a mask from psd-a to psd-b and the mask gets ignored in psd-b. The mask needs to be added in the same psd file to get recognized.

To be clear - the masks are used to crop out unwanted pixels, and/or to add padding in layers with transparency. 

Is there a way to force generator to look at the layers and render correctly? Or am I missing something?
Photo of Ron Troyer

Ron Troyer

  • 5 Posts
  • 2 Reply Likes
  • mystified and frustrated

Posted 2 years ago

  • 4
Photo of Max Johnson

Max Johnson, Champion

  • 591 Posts
  • 311 Reply Likes
I also have intermittent issues with generator losing its mind when I change things on smart objects, but I don't have a solid repro case...
I have had luck fixing it by grouping the offending layer, copy-pasting the layer's name to the group, renaming original layer "tmp", changing one character in the group name, changing it back, then copy-pasting that back on top of the original layer. 

Because this seems to fix it, I assume there's some meta-data in the layer's generator settings that are being ignored or not being updated until it sees a new layer ID and name change?
Photo of Ron Troyer

Ron Troyer

  • 5 Posts
  • 2 Reply Likes
Max,
I tried renaming the layer to force the offending layer to get recognized=no luck
But following your bizarre sequence did work for me. 

Note:  another instance when a layer mask misbehaves is when:
  • a masked layer that does work is duplicated ---- the duplicated layer's mask does not.
  • delete and re-add the duplicated layer's mask and it works
Photo of Max Johnson

Max Johnson, Champion

  • 561 Posts
  • 292 Reply Likes
I... I feel icky even saying this, but I wonder if you could make an action that does the crazy workaround? Or would it end up being layer-name-specific and break?
Photo of Leo Bg

Leo Bg

  • 12 Posts
  • 2 Reply Likes
It seems like there still no fix for this issue. For me, the masking works but it is off! 

I wonder if the Adobe tested the new products before they released! I am having so many issues and it is adding tons of time to my production. 
Photo of Kukurykus

Kukurykus

  • 664 Posts
  • 180 Reply Likes
I doubt they tested it.
Photo of Max Johnson

Max Johnson, Champion

  • 544 Posts
  • 282 Reply Likes
May not be your issue, but layers exported from within a masked group do not have the group's mask applied.
Photo of Leo Bg

Leo Bg

  • 12 Posts
  • 2 Reply Likes
Do you guys know if there is an easy way to add video recordings of the issues to submit to case? It looks like the videos need to be uploaded to youtube or another platform...
Photo of Kukurykus

Kukurykus

  • 664 Posts
  • 180 Reply Likes
Put a link to (dropbox containing) that video.
(Edited)
Photo of Ron Troyer

Ron Troyer

  • 5 Posts
  • 2 Reply Likes
I am the original poster of this issue  (one year ago). Nothing has changed in this "misbehavior". The only new hack is: When duplicating layers with masks into another photoshop documents, first put the layers into a layer-group, then duplicate the layer group to the other doc. Masks usually behave.
Photo of Kukurykus

Kukurykus

  • 664 Posts
  • 180 Reply Likes
That is odd & sad Adobe releases buggy features that are not fixed even for another full version :/

I assume they engaged external team of programers to implement it, they are out of project now.
(Edited)
Photo of Captain

Captain

  • 1 Post
  • 0 Reply Likes
Longtime PS user here, but only started using image assets recently. I very quickly ran into this bug, or at least I think it's the same: I have a document with several layers, which I want to export to PNG files. Each layer has a rectangular pixel mask, and I expect the corresponding PNG to have the dimensions of the pixel mask. Initially this worked, but now when I open the document and save it, all the PNG files have the dimensions of the full document (but the masked-out areas are invisible). The only sure way to fix this (that I have found) is to remove and re-add the mask for each layer separately, which is a pain in the ***, especially since it happens very often... The fix works for a while, then I have to go through the fixing process again.

Photoshop is updated quite often, and I'm sure this can't be the hardest bug to fix.... hard to believe it has already existed so long. A shame that a stupid issue like this makes a great feature almost unusable.
(Edited)