[ 
https://issues.apache.org/jira/browse/BATIK-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matthias Becker updated BATIK-1153:
-----------------------------------
    Description: 
We use the PNGTranscoder to rasterize SVGs into PNG.
We get visually different results when we rasterize the same identical SVG on 
Windows and on Mac.

While debugging around I found out that 
ConcreteImageRendererFactory#createStaticImageRenderer creates different 
Implementation on Mac / Windows. This was implemented because of 
https://issues.apache.org/jira/browse/BATIK-593?jql=project%20%3D%20BATIK%20AND%20text%20~%20Mac
 .
I now did create StaticRenderer and MacRenderer on Mac and Windows machines (by 
directly calling the constructor). 
These are the results:
* StaticRender and MacRenderer created visually *different* PNGs when executed 
on Mac
* StaticRenderer and MacRenderer produces visually *the same* PNGs when 
executed on Windows
* StaticRenderer executed on Mac produces visually *the same* PNG as executed 
on Windows 

So only the StaticRenderer creates the same results on both platforms. I have 
attached the SVG and the 4 versions of the rendered PNG.

So my questions:
# Does this performance issue mentioned in 
https://issues.apache.org/jira/browse/BATIK-593?jql=project%20%3D%20BATIK%20AND%20text%20~%20Mac
 still exist?
# Why does the MacRenderer produce the same result as the StaticRenderer on 
Windows but not on Mac?

  was:
We use the PNGTranscoder to rasterize SVGs into PNG.
We get visually different results when we rasterize the same identical SVG on 
Windows and on Mac.

While debugging around I found out that 
ConcreteImageRendererFactory#createStaticImageRenderer creates different 
Implementation on Mac / Windows. This was implemented because of 
https://issues.apache.org/jira/browse/BATIK-593?jql=project%20%3D%20BATIK%20AND%20text%20~%20Mac
 .
I now did create StaticRenderer and MacRenderer on Mac and Windows machines (by 
directly calling the constructor). 
These are the results:
* StaticRender and MacRenderer created visually *different* PNGs when executed 
on Mac
* StaticRenderer and MacRenderer produces visually *the same* PNGs when 
executed on Windows
* StaticRenderer executed on Mac produces visually *the same* PNG as executed 
on Windows 

So only the StaticRenderer creates the same results on both platforms. I have 
attached the SVG and the 4 versions of the rendered PNG.

So my questions:
# Does this performance issue mentioned in 
https://issues.apache.org/jira/browse/BATIK-593?jql=project%20%3D%20BATIK%20AND%20text%20~%20Mac
 still exist?

# Why does the MacRenderer produce the same result as the StaticRenderer on 
Windows but not on Mac?


> PNGTranscoder creates (visually) different PNGs on Mac or Windows  for same 
> SVG
> -------------------------------------------------------------------------------
>
>                 Key: BATIK-1153
>                 URL: https://issues.apache.org/jira/browse/BATIK-1153
>             Project: Batik
>          Issue Type: Bug
>          Components: SVG Rasterizer
>    Affects Versions: 1.7, 1.8
>            Reporter: Matthias Becker
>         Attachments: fldr_obj.svg, fldr_obj_MacRenderer_on_mac.png, 
> fldr_obj_MacRenderer_on_win.png, fldr_obj_StaticRenderer_on_mac.png, 
> fldr_obj_StaticRenderer_on_win.png
>
>
> We use the PNGTranscoder to rasterize SVGs into PNG.
> We get visually different results when we rasterize the same identical SVG on 
> Windows and on Mac.
> While debugging around I found out that 
> ConcreteImageRendererFactory#createStaticImageRenderer creates different 
> Implementation on Mac / Windows. This was implemented because of 
> https://issues.apache.org/jira/browse/BATIK-593?jql=project%20%3D%20BATIK%20AND%20text%20~%20Mac
>  .
> I now did create StaticRenderer and MacRenderer on Mac and Windows machines 
> (by directly calling the constructor). 
> These are the results:
> * StaticRender and MacRenderer created visually *different* PNGs when 
> executed on Mac
> * StaticRenderer and MacRenderer produces visually *the same* PNGs when 
> executed on Windows
> * StaticRenderer executed on Mac produces visually *the same* PNG as executed 
> on Windows 
> So only the StaticRenderer creates the same results on both platforms. I have 
> attached the SVG and the 4 versions of the rendered PNG.
> So my questions:
> # Does this performance issue mentioned in 
> https://issues.apache.org/jira/browse/BATIK-593?jql=project%20%3D%20BATIK%20AND%20text%20~%20Mac
>  still exist?
> # Why does the MacRenderer produce the same result as the StaticRenderer on 
> Windows but not on Mac?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to