Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old January 13th, 2007   #1
Coop
Way Too Much Ubuntu
 
Coop's Avatar
 
Join Date: Feb 2006
My beans are hidden!
Ubuntu 7.04 Feisty Fawn
how do I convert png to svg?

Hello
How do I convert a png picture to svg?I have Inkscape installed.
What do I do?Please reply to me.
Regards Coop.
Coop is offline   Reply With Quote
Old January 13th, 2007   #2
peterLinux
5 Cups of Ubuntu
 
peterLinux's Avatar
 
Join Date: Dec 2006
Location: Okotoks, Alberta, Canada
Beans: 44
Kubuntu 9.04 Jaunty Jackalope
Re: how do I convert png to svg?

AFAIK
The Import command supports all of the bitmap formats that are covered with GdkPixbuf
(Including PNG)
Export as SVG...

Peter
__________________
PeterLinux

All my writings are based on real world experiences; hopefully you enjoy them. Constructive feedback is always appreciated.
peterLinux is offline   Reply With Quote
Old January 13th, 2007   #3
WiseElben
A Carafe of Ubuntu
 
WiseElben's Avatar
 
Join Date: Feb 2005
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
Re: how do I convert png to svg?

Or you can just install an SVG editor like Inkscape (available in the repos), import the PNG, and export it as SVG.
WiseElben is offline   Reply With Quote
Old January 13th, 2007   #4
peterLinux
5 Cups of Ubuntu
 
peterLinux's Avatar
 
Join Date: Dec 2006
Location: Okotoks, Alberta, Canada
Beans: 44
Kubuntu 9.04 Jaunty Jackalope
Re: how do I convert png to svg?

That's exactly what I mean or are you looking for a command line solution?

Not sure about this one but it may work, I have not checked the syntax of the command use at your own risk
inkscape -export-svg=new.svg newlogo2.png

I know the other way around from svg to png works that way
__________________
PeterLinux

All my writings are based on real world experiences; hopefully you enjoy them. Constructive feedback is always appreciated.
peterLinux is offline   Reply With Quote
Old September 30th, 2007   #5
kakao
5 Cups of Ubuntu
 
kakao's Avatar
 
Join Date: Sep 2007
Beans: 34
Re: how do I convert png to svg?

Quote:
Originally Posted by peterLinux View Post
inkscape -export-svg=new.svg newlogo2.png
That option -export-svg does not exist and as I understand the man pages inkscape can not convert png to svg. Only the other way around (vector -> raster) would work (as you said already). Still, inkscape can import png (and other raster/pixel graphics) via the File menu and you than can trace it via the Path menu -> "Trace Bitmap...". In my tests with a small (48x4 png it didn't look good, though.

Cheers.
kakao is offline   Reply With Quote
Old November 12th, 2007   #6
williamts99
Just Give Me the Beans!
 
Join Date: Jan 2006
Location: Near Frankfurt, Germany
My beans are hidden!
Re: how do I convert png to svg?

Quote:
Originally Posted by Coop View Post
Hello
How do I convert a png picture to svg?I have Inkscape installed.
What do I do?Please reply to me.
Regards Coop.

The absolute best way that I have found to "Automatically" convert from png to svg is to use VectorMagic from Stanford. http://vectormagic.stanford.edu/

I think you will be truly amazed at the results.
Let me know how it goes.

Best Regards,
Williamts99

Last edited by williamts99; November 12th, 2007 at 04:33 PM.. Reason: Had to add the word Automatcially :-)
williamts99 is offline   Reply With Quote
Old November 12th, 2007   #7
mcduck
Big cup of plunger coffee
 
mcduck's Avatar
 
Join Date: Apr 2005
Location: Finland
Beans: 6,475
Ubuntu 9.10 Karmic Koala
Re: how do I convert png to svg?

There is no simple way to convert from bitmap image format into vector image format.

The only thing you can do is import the image in some vector image editor (like Inkscape) and then try to trace it into vectors. The result will never be exactly same as your original bitmap image was, but it might be good enough for your needs.

To do this with Inkscape, import the PNG image into Inkscape, select it and then go to Path/Trace Bitmap. Then you just have to try different settings until you get a result that pleases you.
__________________

42
mcduck is offline   Reply With Quote
Old November 12th, 2007   #8
williamts99
Just Give Me the Beans!
 
Join Date: Jan 2006
Location: Near Frankfurt, Germany
My beans are hidden!
Re: how do I convert png to svg?

Quote:
Originally Posted by mcduck View Post
There is no simple way to convert from bitmap image format into vector image format.
.

Talk about timing on a reply

Seriously though, try out VectorMagic from Stanford. http://vectormagic.stanford.edu/
williamts99 is offline   Reply With Quote
Old November 12th, 2007   #9
mcduck
Big cup of plunger coffee
 
mcduck's Avatar
 
Join Date: Apr 2005
Location: Finland
Beans: 6,475
Ubuntu 9.10 Karmic Koala
Re: how do I convert png to svg?

Quote:
Originally Posted by williamts99 View Post
Talk about timing on a reply

Seriously though, try out VectorMagic from Stanford. http://vectormagic.stanford.edu/
Well, I admit, that is a simple, although the result, like with any other tool, is not the same as the original was. But that is the nature of vector graphics, and that web site was a nice one, Ill have to remember it in case I some day need to convert some images and I don't happen to have my laptop at hand

It's just that usually when people wish to convert image from one format to other, they are expecting to get exactly the same image, only indifferent file format. And that's not possible when converting from bitmaps to vectors.
__________________

42
mcduck is offline   Reply With Quote
Old November 12th, 2007   #10
williamts99
Just Give Me the Beans!
 
Join Date: Jan 2006
Location: Near Frankfurt, Germany
My beans are hidden!
Re: how do I convert png to svg?

Good point, I figured that if they wanted to vectorize their images that they would know the result they wanted.
williamts99 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:58 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry