Including a large SVG image
Hi, I have a few SVG graphics of multiple megabytes. They contain a lot of objects (text/shapes). All graphics except for one gets properly included in my ConTeXt document. In place of the failed one there the gray placeholder box with 'status unknown'. I noticed that ConTeXt uses Inkscape to convert these SVGs to PDF. Is there a way in which I can increase the timeout for this conversion process? That is just a guess, maybe the problem is due to something else. Best, Sander
On 2013–06–03 Sander Maijers wrote:
I have a few SVG graphics of multiple megabytes. They contain a lot of objects (text/shapes). All graphics except for one gets properly included in my ConTeXt document. In place of the failed one there the gray placeholder box with 'status unknown'.
Maybe inkscape failed to convert the file. Is a corresponding m_k_i_v_filename.svg.pdf file generated? Marco
Hoi Sander, Sander Maijers wrote:
I have a few SVG graphics of multiple megabytes. They contain a lot of objects (text/shapes). All graphics except for one gets properly included in my ConTeXt document.
Marco Patzer wrote:
Maybe inkscape failed to convert the file. Is a corresponding m_k_i_v_filename.svg.pdf file generated?
It might be informative to try running the Inkscape conversion
manually. This is the command line ConTeXT uses:
inkscape "%oldname%" --export-dpi=600 -A "%newname%"
(The quotation marks are literal: they are there in case the filename
has spaces, e.g.)
Good luck!
Sietse
On 3 June 2013 13:25, Marco Patzer
On 2013–06–03 Sander Maijers wrote:
I have a few SVG graphics of multiple megabytes. They contain a lot of objects (text/shapes). All graphics except for one gets properly included in my ConTeXt document. In place of the failed one there the gray placeholder box with 'status unknown'.
Maybe inkscape failed to convert the file. Is a corresponding m_k_i_v_filename.svg.pdf file generated?
Marco
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Sander Maijers wrote:
I have a few SVG graphics of multiple megabytes. They contain a lot of objects (text/shapes). All graphics except for one gets properly included in my ConTeXt document.
Marco Patzer wrote:
Maybe inkscape failed to convert the file. Is a corresponding m_k_i_v_filename.svg.pdf file generated?
It might be informative to try running the Inkscape conversion manually. This is the command line ConTeXT uses:
inkscape "%oldname%" --export-dpi=600 -A "%newname%"
(The quotation marks are literal: they are there in case the filename has spaces, e.g.)
If processing in Inkscape fails, you can try another tool: http://xmlgraphics.apache.org/batik/tools/rasterizer.html It can (despite its name) transcode SVG to vector PDF: java -Xmx2G -jar batik-rasterizer.jar -m application/pdf image.svg In that case you have to transcode your files first and reference PDF variants in your input. Jan
participants (4)
-
honyk
-
Marco Patzer
-
Sander Maijers
-
Sietse Brouwer