I'm trying to use Photoshop's Generate Image Assets feature to export a 32 x 32 transparent image with a solid 16 x 16 square in the middle:

image screenshot

My layers look like this:

layers screenshot

I'm using a fully transparent (no fill or stroke) rectangle that fills the area I want to be exported. This doesn't work, as the Generate Image Assets feature does not appear to consider it when determining the size of the asset; I get a 16 x 16 image containing the opaque square instead of the full 32 x 32 image.

I have read about vector masks or layer masks possibly being a solution to this, but I don't really understand them that well, and my attempts to use them to solve my problem were not successful.

So, how can I control the size of my generated asset when it contains transparent areas?


I ended up just setting the fill colour of the bounds to a colour that would blend into the background and set the layer opacity for it to 1%. Not very nice, and so I'm not going to accept it as the answer in the hopes that someone comes along with a proper way to do it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.