Skip to content

export to emf exports in wrong dimensions (rounding 19.05mm to 20mm)

Summary:

The svg-Input-file contained <svg height="72" viewBox="0 0 72 72" width="72" xmlns="http://www.w3.org/2000/svg"> which should be converted to with 96dpi to height="19.05mm" width="19.05mm", however it converts to width="20mm" height="20mm", which is close to 90dpi (width="20.32mm" height="20.32mm"), which was used in Inkscape 0.91 r13725 and earlier. Maybe it is also related to Integerrounding?

Steps to reproduce:

  • open LinkedIn_icon.svg in Inkscape
  • save it as *.emf
  • close Inkscape
  • open the previously saved *.emf and you see the a white border (*.svg)
  • to remove the white border change width="20mm" height="20mm" to width="19.05mm" height="19.05mm"

What happened?

Screenshot_2023-03-05_19.43.55

What should have happened?

Screenshot_2023-03-05_19.44.30

Sample attachments: LinkedIn_icon.svg

Copyright

author LinkedIn

license Below https://en.wikipedia.org/wiki/Threshold_of_originality

source https://commons.wikimedia.org/wiki/File:LinkedIn_icon.svg

Version info

Inkscape 1.3-dev (781e29cd3, 2023-02-27)

    GLib version:     2.74.5
    GTK version:      3.24.36
    glibmm version:   2.66.5
    gtkmm version:    3.24.7
    libxml2 version:  2.10.3
    libxslt version:  1.1.37
    Cairo version:    1.17.7
    Pango version:    1.50.13
    HarfBuzz version: 7.0.1

    OS version:       Windows 11 22H2
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information