Comment 1 for bug 1634571

Revision history for this message
su_v (suv-lp) wrote : Re: Mac version cannot convert some SVG files

Not reproduced with Inkscape 0.91 r13725 on Ubuntu 14.04
Reproduced with Inkscape 0.91 r13725 (official package as well as with regular local build installed into fixed prefix), lp:inkscape 0.92.x r15116 (local build) on OS X 10.7.5.

The issue seems to be related to 'ex' units used for for the root <svg> element's width and height attributes:

<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="85.087ex" height="5.558ex" focusable="false" xmlns="http://www.w3.org/2000/svg" style="vertical-align: -2.054ex; margin-bottom: -0.147ex; max-width: 736px; position: static;" viewBox="0 -1445.5 36634.4 2393.2">

“(...) the em and ex unit identifiers are relative to the current font's font-size and x-height, respectively.“

Also affects regular opening (via GUI), and import of the file into a new document - the issue is not specific to command line usage or PNG export.

Import into a new document applies this transformation to the imported group (with 0.91):
    matrix(0,0,0,0,375,532.3622)
which renders 'invisible' since the group is scaled to zero size.