How do I stop transparency when exporting PNGs?

Post questions on how to use or achieve an effect in Inkscape.
futuremoves
Posts: 1
Joined: Sun Jan 01, 2017 9:46 pm

How do I stop transparency when exporting PNGs?

Postby futuremoves » Sun Jan 01, 2017 9:48 pm

To be clear: I do want the background transparent. It's the image/item itself that I do not want transparent.
In Inkscape the images are not transparent. Opacity is set to 100%.
When I export the images as PNGs, whatever program I put them into they appear slightly transparent when put on top of each other. Any ideas?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: How do I stop transparency when exporting PNGs?

Postby Moini » Mon Jan 02, 2017 1:37 am

Make sure that the alpha value of the fill and/or stroke color is set to maximum, and the layer's opacity it also set to 100%. Also, if the objects are grouped, make sure that each grouping is also set to 100% opacity.

In Inkscape, and SVG, many things can contribute to transparency ;-)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

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

Re: How do I stop transparency when exporting PNGs?

Postby Lazur » Mon Jan 02, 2017 5:13 am

As a brute-force workaround set the background to be opaque white from transparent white in the document settings (Shift+Ctrl+D).

Other than that it is not so clear what you are doing and what leads to unexpected results.
"Images as png-s" -so you want to export raster images in your svg to raster images? Which images may have been transparent from the start? Who knows?
Are you trying to export raster images aligned geometrically next to eachother at once?
Anti-aliasing can produce semi-transparent pixels on the object edges. That could result in unexpected transparency with fully opaque objects.

Images as a figure of speech, svg drawings? Aside the object transparency there is the fill value that can contain alpha.
Objects can be grouped, and with each object you can set individual transparency values -in case you see your object is at 100% opacity, it may be in a group with lowered opacity. That group may as be the layer.

Also you can set masking to alter the transparency. Doubt you could do that unintentionally but maybe you opened a pdf?
Usually transparent raster images are represented with masking.

And filtering can also lower the opacity.



Only the suggested setting would result in the same fully opaque appearance, however that's not a solution.
Like, if you want to put object behind the objects in the exported area most probably they would show through.


Return to “Help with using Inkscape”