Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1175

Rendering of small SVG icons distorts circles

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7, 1.8
    • None
    • SVG Rasterizer
    • None
    • Mac OS X Sierra, Windows

    Description

      In my application (OpenPnP, http://openpnp.org) I use Batik to render SVG icons for the user interface. Recently it's been noticed that some of the shapes in the icons become distorted. In comparing the same file rendered by several other SVG renderers it's clear that Batik is rendering small circles (and maybe other shapes) incorrectly. The issue can be seen in the attached image quite clearly.

      The source SVG is also attached. The file was created in InkScape, but I have also tried exporting it from AutoDesk Graphic and get a similar result. The icon is rendered at 24x24.

      I have also attached the Java code I use to render the icons in SvgIcon.java.

      Attachments

        1. position-nozzle-no-safe-z.svg
          5 kB
          Jason von Nieda
        2. Screen Shot 2017-01-31 at 9.31.59 AM.png
          20 kB
          Jason von Nieda
        3. SvgIcon.java
          4 kB
          Jason von Nieda

        Activity

          People

            Unassigned Unassigned
            vonnieda Jason von Nieda
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: