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

Transcoding an svg into JPEG leads to out of memory exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: SVG Rasterizer
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC

      Description

      Transcoding an svg file into JPEG causes a pike in memory usage and leads to out of memory exceptions. Transcoding a small size image (1500 * 1500 pixels) leads to a spike of 100 MB in the heap usage. This can sometimes cause memory exception.

      I have attached a code snippet to reproduce this.

        Attachments

        1. Test.java
          3 kB
          pramod.kumar
        2. untitled.svg
          704 kB
          pramod.kumar

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              pramod.kumar@mathworks.com pramod.kumar
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: