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

Incorrectly handled parameter dpi when converting to png

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.8
    • None
    • SVG Rasterizer
    • None
    • Batik-1.8, Windows 10

    Description

      When converting svg to png not responding to the parameter -dpi.
      Example:
      batik-1.8\batik-rasterizer-1.8.jar -dpi 100 -m image/png -bg 255.255.255.255 C:\test*.svg
      and
      batik-1.8\batik-rasterizer-1.8.jar -dpi 300 -m image/png -bg 255.255.255.255 C:\test*.svg
      Obtained png files have the same resolution.
      The default resolution of 90dpi svg. When converting to 300dpi all dimensions must be increased proportionally.
      And the picture should be higher resolution. Inkscape and imageMagick take this into account when converting.

      Attachments

        1. smile_inkscape.png
          387 kB
          Alexander Pavlysh
        2. smile_imagick.png
          394 kB
          Alexander Pavlysh
        3. smile_batik.png
          69 kB
          Alexander Pavlysh
        4. smile.svg
          1 kB
          Alexander Pavlysh

        Activity

          People

            Unassigned Unassigned
            av.pavlysh Alexander Pavlysh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: