White border around images when export png

Post questions on how to use or achieve an effect in Inkscape.
Dustin01
Posts: 1
Joined: Tue Aug 13, 2013 10:53 am

White border around images when export png

Postby Dustin01 » Tue Aug 13, 2013 10:58 am

Hello, I am new to inkscape. I am trying to create images to use in my Android game, which uses pngs for the graphics. I have created some images that look great in Inkscape, but when I export them to bitmap it seems as if a white border is created around them to make them look smoother. This is fine until I delete the background, which causes this border to stand out. Is there some way that I can turn off this "auto-smoothing" feature that Inkscape seems to have? Otherwise, what could I do fix this issue?

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: White border around images when export png

Postby Lazur » Wed Aug 14, 2013 9:49 pm

Hello there!

I'm not sure if I get your explanation right, so my guess would be you have some problems with anti-aliasing?
Inkscape works with a 90 dpi resolution, meaning to get a pixel fitted image,
you need to draw with the exact pixel sizes, placing every nodes on even pixel coordinates,
using an exporting resolution of 90 dpi.
Still with non-horizontal/vertical lines, you cannot avoid all anti-aliasing.
By the way I was confused of your description because inkscape exports transparent png-s, so
any "white" border should be pixels with some alpha channel?


Return to “Help with using Inkscape”