Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for professional graphic designers and non-designers trying to do their own graphic design. It's 100% free, no registration required.

I have some vector objects created in Inkscape and I am exporting them to a png files. I am using the exported images in another program.

The problem is, that even though the initial object is on transparent background, the resulting png has a thin white border around it which looks just terrible.

I have read somewhere, that the deafult export format is PNG-8, which should have transparent-functionality, but this feature is often not 100% supported (especially in older versions of software). Is exporting svg objects to PNG-24 a solution to this? I would try it but I have not found how to change the defualt export format in Inkscape.

What else could be done to eliminate this problem? Thanks for any tips!

share|improve this question
1  
What are you viewing the created PNG in? I found this FAQ here: wiki.inkscape.org/wiki/index.php/…. –  ckpepper02 Jun 10 '13 at 15:32
    
We can not reproduce this behaviour here. All exported PNG are borderless as expected. Could it be that the border you observe is a placeholder frame drawn from the importing application? –  Takkat Jun 11 '13 at 10:59
    
Funny thing is, that "saving" the picture as SVG works fine, but "exporting" as SVG does not... I dont know what causes this problem, but I solved simply by not using export anymore (I think that this option provides worse quality of the output, but its ok since these pictures are really small in size..) –  Smajl Jun 17 '13 at 7:01
1  
that's weird - I'm trying to find the opposite: the export is 24 bit png for me, and I'm looking for a way to change to 8. I'm using inkscape 0.48 on Ubintu. What is yours? –  uval Jun 30 '13 at 23:45
1  
What colour is your document background? it should be white/100% transparent by default, but if it's somehow been set to 100% opaque, you'll get a white background on your png exports. –  naught101 Jul 12 '13 at 7:13
add comment

1 Answer

After researching this issue, I found this similar question on SO (incorrectly posted BTW).

The accepted answer was:

I would actually export it as a SVG open it with Gimp, do additional stuff if required and then save it as a PNG using Gimps save for web function.

Also found this FAQ

Inkscape FAQ Question

The PNGs exported by Inkscape have jagged edges/no antialiasing/funny background.

This is a problem with whatever you use to view these PNG files, not with Inkscape. For example, Internet Explorer prior to version 7 cannot show PNG files with transparency properly. Use e.g. Firefox to view your PNGs. If you absolutely must support IE 6, you can't have transparent background in PNG; change it to opaque in Document Preferences and export the PNG file again. Also, you should look into using Dean Edwards' IE7 Library: It fixes many CSS issues and makes transparent PNG work correctly under IE5 and IE6. If you want to open the exported PNG bitmaps in MS-Word, you will also have to change the alpha-opacity (in document-properties dialog) to full, and then export -- the result will be much better.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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