Error saving as optimised SVG

Bug #1630273 reported by Martin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

I have created a file and saved it as simple SVG. The file is attached

Now I want to save it as optimised SVG (running v0.91 on Ubuntu 14.04LTS)
I get the following error, and nothing is saved:
Traceback (most recent call last):
  File "scour.inkscape.py", line 78, in <module>
    e.affect(output=False)
  File "/usr/share/inkscape/extensions/inkex.py", line 265, in affect
    self.getposinlayer()
  File "/usr/share/inkscape/extensions/inkex.py", line 207, in getposinlayer
    x = self.unittouu( xattr[0] + 'px' )
  File "/usr/share/inkscape/extensions/inkex.py", line 351, in unittouu
    return retval * (self.__uuconv[u.string[u.start():u.end()]] / self.__uuconv[self.getDocumentUnit()])
  File "/usr/share/inkscape/extensions/inkex.py", line 304, in getDocumentUnit
    p = param.match(svgwidth)
TypeError: expected string or buffer
I get the same error running under Windows 7 Pro

Revision history for this message
Martin (mknapp1952) wrote :
Revision history for this message
Martin (mknapp1952) wrote :

I changed the dimensions of the page from 48x48px to 50x50px... and the problem seems to have gobe away!

Revision history for this message
su_v (suv-lp) wrote :

Known issue in Inkscape 0.91 with SVG files which lack width and height attributes for the root <svg> element, already tracked in
* Bug #1463623 “Error trying to save Optimized SVG (no 'width' attribute for SVGRoot)”
  https://bugs.launchpad.net/inkscape/+bug/1463623
* Bug #1461346 “getposinlayer fails if height attribute is missing”
  https://bugs.launchpad.net/inkscape/+bug/1461346

Linking as duplicate to bug #1463623.

tags: added: extensions-plugins
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.