svg text path to png cutting text

Asked by Johann Muller

When I convert svg's with text paths to png some of the text is being cut off?

Command: inkscape -z -f 'sample-text.svg' -w 2770 -h 1180 -e 'sample-text.png'

Here's the svg and png files.... Look at the last character - the M is cut??

http://95.168.192.183/jm.svg

http://95.168.192.183/jm.png

This seems to happen with quite a few fonts I use. Any suggestions?

Question information

Language:
English Edit question
Status:
Expired
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Johann Muller (johanndms) said :
#1

It seems like the "viewbox" around the text on path is being cut off. Here's another example svg to png that shows the issue better.

SVG: http://95.168.192.183/jm2.svg
PNG: http://95.168.192.183/jm2b.png
PNG LARGE: http://95.168.192.183/jm2.png

Is there a way to "increase the viewbox" around the path??

Revision history for this message
Hachmann (marenhachmann) said :
#2

Hi Johann,

I don't have a solution for you, only a workaround:
You could convert the text to path before you export to png (and don't ask me how to script that - I have no idea, sorry!)

Maybe one of the others here can help?

Regards,
 Maren

Revision history for this message
Johann Muller (johanndms) said :
#3

Ok I have managed to get a work around for this.

First step is exporting to PDF using:
inkscape -z -f jm.svg --export-text-to-path --export-pdf=jm.pdf

This converts the text to paths - it seems --export-text-to-path only works for PDF, PS and EPS

Then I convert the PDF to PNG and use it in the rest of the composite image build we need.
inkscape -z -f jm.pdf -w 2770 -h 1180 -e jm.png

Hopefully this is fixed in inkscape 0.91 :-)

Thanks for all the suggestions and pointers!

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.