On 15/02/15 17:00, James McCoy wrote: > On Sun, Feb 15, 2015 at 03:47:31PM +0000, Simon McVittie wrote: >> It would probably be possible to postprocess the SVG with >> xmlstarlet to assign a suitable bounding box. Alternatively, >> using vimlogo.eps instead of vimlogo.pdf as your source format >> would probably work, since vimlogo.eps seems to have the correct >> bounding box already. > > My poor search skills didn't turn up an eps → svg converter. I would > prefer to do that as well, since the eps is the original source file. > Do you happen to know of a converter?
Here is the best procedure I've found, using the ghostscript and pdf2svg packages: gs -sDefaultCMYKProfile=ps_cmyk.icc -sOutputICCProfile=ps_rgb.icc \ -dSAFER -dEPSCrop -dBATCH -dNOPAUSE \ -sDEVICE=pswrite -sOutputFile=tmp.ps runtime/vimlogo.eps ps2pdf tmp.ps tmp.pdf pdf2svg tmp.pdf vim.svg Converting EPS to PS seems to be the only way to fix the colour space (symptom of not doing that: the colours look muted). You can combine the other two steps into inkscape --export-plain-svg=tmp.svg tmp.ps but inkscape is a fairly heavy build-dependency, so you might not want to do that, depending whether you use sbuild/pbuilder for the Architecture: all part of the build. S -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org