[jira] [Created] (BATIK-1288) PNG transcoder does not render PNG file correctly
Mateusz created BATIK-1288:
Summary: PNG transcoder does not render PNG file correctly
URL: https://issues.apache.org/jira/browse/BATIK-1288 Project: Batik
Issue Type: Bug
Affects Versions: 1.13
Environment: MacOS Catalina 10.15.4, MacOS Mojave, both visible on MacBooks host systems as well as inside Virtual Machines
openjdk version "1.8.0_252"
OpenJDK Runtime Environment Corretto-8.252.09.1 (build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM Corretto-8.252.09.1 (build 25.252-b09, mixed mode)
Fix For: trunk
Attachments: SaveAsPNG.java, correct.png, incorrect_output_1.png, incorrect_output_2.png, input.svg
Please consider such code I use for rendering PNG from SVG. We use it for rendering various icon sizes. The majority of sizes are rendered as expected (correct.png) but some are being rendered incorrect (especially 180 and 360). That affects only some environments - on the majority of our MacBooks it works fine for most trials and on VMs it usually results in incorrect PNG rendered as below. Also, I didn't notice it happening for any other text strings that the one from the sample (that obviously doesn't mean it is the only one causing that).
May I ask you to check if that is something to be considered a batik bug? Or, if not - please please point me any investigation directions in terms of my code correctness, possible environment issues worth checking?