Saša Makorič created BATIK-1369:
-----------------------------------

             Summary: Incorrect rasterizering of colored mask
                 Key: BATIK-1369
                 URL: https://issues.apache.org/jira/browse/BATIK-1369
             Project: Batik
          Issue Type: Bug
          Components: SVG Rasterizer
    Affects Versions: 1.17, 1.12
            Reporter: Saša Makorič
         Attachments: example.png, example.svg, output-values.png

When rasterizing an SVG to a PNG (or any other format, it doesn't matter), the 
output image shows slight changes in the RGB values and the alpha channel.
h4. How to reproduce:
 * Create an SVG with a masked rectangle filled with color (see example.svg) 
and another rectangle filled with the same color.
 * Transform the SVG into a PNG using the following command:


{code:java}
java -jar batik-rasterizer-1.17.jar -m image/png -w 800 -d output/ 
example.svg{code}

 * Check the output file (example.png). You will notice that the two rectangles 
have differences in their RGB values and alpha channels (output-values.png).

 

The resulting differences are very small but impact the fidelity of the values, 
especially when using more complex SVGs where layers overlap, making the 
differences considerably more noticeable.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org

Reply via email to