marinebon / infographiqR

R functions for creation of interactive intelligent infographics, ie infographiq
https://marinebon.github.io/infographiqR
MIT License
11 stars 2 forks source link

inkscape w & h in .svg breaks dynamic-sizing within browser #27

Closed 7yl4r closed 6 years ago

7yl4r commented 6 years ago

Inkscape adds width & height attributes to svg files, which tends to override dynamic sizing from bootstrap.

example from info-mb/pelagic.svg:

<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" id="svg7302" version="1.1" inkscape:version="0.91 r13725" xml:space="preserve" width="990" height="765" viewBox="0 0 990 765" sodipodi:docname="pelagic.svg">

image

We need to do something to regain control of the size of the svg image. Options:

  1. rm the width & height from the svg file during site-build
  2. somehow tell the browser to ignore it?