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

Bottom part of files transparent at small sizes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.7
    • None
    • SVG Rasterizer
    • None
    • Operating System: Linux
      Platform: PC

    Description

      Just as the title says, sometimes when rasterising an SVG file at small sizes, the bottom row of the raster image appears completely transparent.

      Let's take for example the following file:

      <svg xmlns="http://www.w3.org/2000/svg" height="10" width="19">
      <rect width="19" height="10" fill="lime"/>
      </svg>

      Obviously, this image is fully green (ff0000), and so should be any rasterisation of this image. However, when rasterising it with Batik at a width of 22px (rasterizer -w 22 -m image/png file.svg), all pizels on the bottom row of the resulting PNG file are completely transparent.
      Needless to say, this behaviour makes it difficult to align images properly or put a border around one, as MediaWiki does.

      Attachments

        1. file.svg
          0.1 kB
          fibonacci.prower

        Activity

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            fibonacci.prower@gmail.com fibonacci.prower
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: