8

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!

5
  • 1
    What are you viewing the created PNG in? I found this FAQ here: wiki.inkscape.org/wiki/index.php/….
    – ckpepper02
    Commented Jun 10, 2013 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
    Commented Jun 11, 2013 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
    Commented Jun 17, 2013 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?
    – Amir Uval
    Commented Jun 30, 2013 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
    Commented Jul 12, 2013 at 7:13

1 Answer 1

3

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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