You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "Saša Makorič (Jira)" <ji...@apache.org> on 2024/08/02 07:00:00 UTC
[jira] [Updated] (BATIK-1369) Incorrect rasterization of colored mask
[ https://issues.apache.org/jira/browse/BATIK-1369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Saša Makorič updated BATIK-1369:
--------------------------------
Summary: Incorrect rasterization of colored mask (was: Incorrect rasterizering of colored mask)
> Incorrect rasterization 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.12, 1.17
> Reporter: Saša Makorič
> Priority: Major
> 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-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org