typesetters / p5-App-pandoc-preprocess

Preprocess Pandoc before Processing Pandoc
8 stars 2 forks source link

Picture resolutions: try to generate `.svg` graphics where possible to avoid losses during scaling #5

Closed xdbr closed 10 years ago

xdbr commented 10 years ago

Note: Try to produce svg with all renderers and as a default if that is possible.

For now, a first quick round of investigation yields:

nichtich commented 10 years ago

For PDF one cannot simply use SVG and support of SVG for PDF in pandoc will not be implemented (https://github.com/jgm/pandoc/issues/265), so SVG as default is problematic. A possible workardound is to use inkscape with ConTeXt or svg-inkscape with a wrapper. If ppp can be this wrapper, use of SVG in Pandoc Markdown would be possible. Inkscape can also convert SVG to PNG with a given size in pixel:

inkscape -z -e image.png -w 800 -h 600 image.svg

xdbr commented 10 years ago

Closing as fixed in v0.9.0