How to convert png to svg and keep transparency

Post questions on how to use or achieve an effect in Inkscape.
ninjaface
Posts: 3
Joined: Wed Apr 02, 2014 9:27 pm

How to convert png to svg and keep transparency

Postby ninjaface » Wed Apr 02, 2014 11:48 pm

I have a design which the background has been cut out and saved as transparent in a PNG file. What would be the best way to turn this into an SVG and retain it's transparency? When I save this as an SVG the transparent background is now solid white but I need the exact shape as it was cut without the background. Also I need this in SVG format to import into another application.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: How to convert png to svg and keep transparency

Postby tylerdurden » Wed Apr 02, 2014 11:56 pm

When I use the Import function, the png's alpha is usually active and nothing needs to be done other than convert to vector (if needed).

If the import does not work properly for you, perhaps you can upload the png?
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: How to convert png to svg and keep transparency

Postby Maestral » Thu Apr 03, 2014 1:54 am

Also, importing .png file into the Inkscape and saving it as .svg does not change the raster image into the vector image. To do so you`ll need to trace or convert it, and than saving it in .svg will make it a scalable vector graphic / svg.

p.s.
While in Inkscape, check Document properties for the background color/alpha settings.
:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:

ninjaface
Posts: 3
Joined: Wed Apr 02, 2014 9:27 pm

Re: How to convert png to svg and keep transparency

Postby ninjaface » Thu Apr 03, 2014 5:46 pm

Thank you for your responses guys. In respect to the import and convert to vector, does this mean I just need to change the document properties for the transparency, yes?

Also Maestral. You say I must either trace or convert it. What is the process of properly converting this to svg? Are the steps above enough? This will be useful for me to know because tracing some of these will be extremely difficult and I will also have to repeat this process for many pngs that I have.

User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: How to convert png to svg and keep transparency

Postby Maestral » Thu Apr 03, 2014 6:20 pm

Perhaps this would explain a difference among vector and raster images.

Simple import of raster image in Inkscape does not makes it a vector image, and therefore remaining the transparency of the background will not affect that fact.
:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:


Return to “Help with using Inkscape”