Quantcast
Viewing all articles
Browse latest Browse all 87055

How to make assets generator to get canvas size when creating a png?

Hello. I'm trying to make assets generator to create a png with document size adding transparency to layer instead of streching.

 

Here's my document (width: 200px; height: 200px):

Image may be NSFW.
Clik here to view.
print_screen.png

 

Then i name it "rounded_rectangle.png" and here's the result:
Image may be NSFW.
Clik here to view.
rounded_rectangle.png

 

If i name it "200px x 200px rounded_rectangle_with_canvas.png" i get this result:

 

Image may be NSFW.
Clik here to view.
rounded_rectangle_with_canvas.png

 

 

How can i acomplish this:

 

Image may be NSFW.
Clik here to view.
teste.png

As u see the last one has the same size as document with the transparency included without streching. How can i make this with assets generator?

 

Hope i made myself clear.

Thanks in advance.


Viewing all articles
Browse latest Browse all 87055

Trending Articles