: 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
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.
More posts by @Cofer715
2 Comments
Sorted by latest first Latest Oldest Best
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:
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.