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

images clipped when converted and/or re-sized

    XMLWordPrintableJSON

    Details

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

      Description

      There seems to be a problem when converting and/or resizing svg images w/ batik transcoders, which results in the drawing being clipped.

      To reproduce the problem, load the following image (http://www.croczilla.com/bits_and_pieces/svg/samples/butterfly/butterfly.svg) into the Batik SVG viewer (Squiggle). When the Squiggle window is smaller than the image when it's loaded, you will see that even increasing window size after loading, the image is still not visible entirely.

      It seems Batik applies the hidden overflow value to all svg elements including the root one where the specification treats it differently.

      The SVG specifications says:
      -------------
      "The initial value for ‘overflow’ as defined in [CSS2-overflow] is 'visible', and this applies also to the root ‘svg’ element; however, for child elements of an SVG document, SVG's user agent style sheet overrides this initial value and sets the ‘overflow’ property on elements that establish new viewports (e.g., ‘svg’ elements), ‘pattern’ elements and ‘marker’ elements to the value 'hidden'."
      -------------

      (Removing the top level SVG clipping fixes it.)

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              lizet Lizet Ernand
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: