Conversion of very simple PNG to SVG

Post questions on how to use or achieve an effect in Inkscape.
prino
Posts: 6
Joined: Thu Feb 12, 2015 6:23 am
Location: Oostende, Belgium

Conversion of very simple PNG to SVG

Postby prino » Thu Jul 28, 2016 8:29 pm

I'm trying to convert the attached PNG, a scan of a simple text form, into SVG - it's incomplete, but that's not very important.

If I open the SVG in Inkscape, it looks the way it should look, give or take a few pixels difference in the placement of the circles and text - I'm using GIMP to get the approximate positions from the PNG.

However, if I subsequently open the SVG in Firefox/PaleMoon/IE11 (sigh)/Chrome, the text positions are screwed up, with the font I'm using, Cubiculum, or for that matter any other font...

What do I do wrong, and how do I get it right?

Thanks
Attachments
liftnote.svg
Same as SVG
(5.61 KiB) Downloaded 269 times
liftnote.png
Scan of simple text
liftnote.png (44.35 KiB) Viewed 2436 times

prino
Posts: 6
Joined: Thu Feb 12, 2015 6:23 am
Location: Oostende, Belgium

Re: Conversion of very simple PNG to SVG

Postby prino » Tue Sep 06, 2016 5:12 pm

Nobody?

Sigh...

ugajin
Posts: 3
Joined: Wed Oct 16, 2013 1:00 am

Re: Conversion of very simple PNG to SVG

Postby ugajin » Tue Sep 06, 2016 6:50 pm

Have you tried converting text to paths?

Polygon
Posts: 393
Joined: Thu Dec 19, 2013 3:27 am

Re: Conversion of very simple PNG to SVG

Postby Polygon » Tue Sep 06, 2016 7:28 pm

When I open the linked file it looks so in Inkscape (1) and Safari browser (2):
liftnote.png
liftnote.png (23 KiB) Viewed 2250 times

safari.png
safari.png (39.7 KiB) Viewed 2250 times


Cheers
P.

ugajin
Posts: 3
Joined: Wed Oct 16, 2013 1:00 am

Re: Conversion of very simple PNG to SVG

Postby ugajin » Tue Sep 06, 2016 7:34 pm

In your code you have different x/y values for text and tspan elements for each of the text objects. The browser is using the tspan value. This is the cause of the misaliignment.

E.g. 'Snelheid' text y= 625 and tspan y = 705.

You will need to use the XML editor in Inkscape, or an external text editor to see and edit the tspan values.


Return to “Help with using Inkscape”