Mobile app version of vmapp.org
Login or Join
Cofer715

: Preserve Photoshop PNG transparent margin from generator I am trying to create a new color for a drawer icon in AS. The stock one has margin to the right that I would like to preserve

@Cofer715

Posted in: #AdobePhotoshop #Android #CreativeCloud #Png

I am trying to create a new color for a drawer icon in AS. The stock one has margin to the right that I would like to preserve since it keeps the actionbar icon from sitting on top of it. When I create a new drawer icon in PS and then generate the .png all the transparency is excluded. I think I'm failing to understand something simple here. I know default is 32bit png, just in case I generated the image using .png32 to force it with no difference in the final image. I tried making a transparent box and creating a smart object from it hoping that layer would be preserved but that didn't work either.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Cofer715

2 Comments

Sorted by latest first Latest Oldest Best

 

@Jamie315

The transparency is not excluded. I mean, the transparency does exist where it should ( between the blue color blocks ). The image is just trimmed to get rid of that extra blank space that you don't normally need.

It does kinda look like you are trying to export all contents within the document, in which case I might recommend Save For Web... like @Nomadme answered.



When you are using the Assets Generator, you can use Layer mask to define bounds for the image.

Like this:

10% popularity Vote Up Vote Down


 

@Yeniel278

I would do just Save for Web and choose PNG-24 and make sure check the Transparency option.

In order to save the margin on the right, make sure you leave extra pixel on the canvas exactly how much margin you want to have.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme