Henry Iguaro created BATIK-1327:
-----------------------------------
Summary: SVG with clipping paths transcoded as an empty image
Key: BATIK-1327
URL: https://issues.apache.org/jira/browse/BATIK-1327
Project: Batik
Issue Type: Bug
Components: GVT
Affects Versions: 1.14, 1.13
Reporter: Henry Iguaro
Attachments: batik-issue.zip, expected.png, output.png
The following SVG:
{{<?xml version="1.0"?>}}
{{<svg xmlns="http://www.w3.org/2000/svg" color-interpolation="auto"
fill="black" fill-opacity="1" height="127.20" stroke="black"
stroke-dasharray="none" stroke-dashoffset="0" stroke-linecap="square"
stroke-linejoin="miter" stroke-miterlimit="10" stroke-opacity="1"
stroke-width="1" width="127.20">}}
{{ <defs id="genericDefs">}}
{{ <clipPath id="d1_1">}}
{{ <path d="M0 0V127.2H127.2V0Z"/>}}
{{ </clipPath>}}
{{ <clipPath clip-path="url(#d1_1)" id="c1">}}
{{ <path d="M-984.16 907.7h1224v-1584h-1224Z"/>}}
{{ </clipPath>}}
{{ </defs>}}
{{ <g>}}
{{ <g fill="rgb(255,0,128)" stroke="rgb(255,0,128)" stroke-linecap="butt">}}
{{ <path clip-path="url(#c1)" d="M121.2 63.6C121.2 31.78 95.4 6 63.6 6
31.78 6 6 31.78 6 63.6c0 31.8 25.78 57.6 57.6 57.6 31.8 0 57.6-25.8
57.6-57.6M51.18 46.32c0-3.32-2.7-6.02-6.02-6.02-3.34 0-6.04 2.7-6.04 6.02 0
3.34 2.7 6.04 6.04 6.04 3.32 0 6.02-2.7 6.02-6.04m36.9
0c0-3.32-2.7-6.02-6.04-6.02S76 43 76 46.32c0 3.34 2.7 6.04 6.04 6.04s6.04-2.7
6.04-6.04" fill-rule="evenodd" stroke="none"/>}}
{{ <path clip-path="url(#c1)" d="M51.18
46.32c0-3.32-2.7-6.02-6.02-6.02-3.34 0-6.04 2.7-6.04 6.02 0 3.34 2.7 6.04 6.04
6.04 3.32 0 6.02-2.7 6.02-6.04m36.9 0c0-3.32-2.7-6.02-6.04-6.02S76 43 76
46.32c0 3.34 2.7 6.04 6.04 6.04s6.04-2.7 6.04-6.04" fill="rgb(127,0,64)"
stroke="none"/>}}
{{ <path clip-path="url(#c1)" d="M121.2 63.6C121.2 31.78 95.4 6 63.6 6
31.78 6 6 31.78 6 63.6c0 31.8 25.78 57.6 57.6 57.6 31.8 0 57.6-25.8
57.6-57.6M51.18 46.32c0-3.32-2.7-6.02-6.02-6.02-3.34 0-6.04 2.7-6.04 6.02 0
3.34 2.7 6.04 6.04 6.04 3.32 0 6.02-2.7 6.02-6.04m36.9
0c0-3.32-2.7-6.02-6.04-6.02S76 43 76 46.32c0 3.34 2.7 6.04 6.04 6.04s6.04-2.7
6.04-6.04" fill="none" stroke="blue" stroke-width="2"/>}}
{{ <path clip-path="url(#c1)" d="M32.46 88.64c1.04.68 2.1 1.34 3.28
2.08s2.5 1.52 3.78 2.2c1.28.66 2.52 1.18 3.38 1.64.84.44 1.32.82 3.44 1.54
2.12.7 5.86 1.72 8.3 2.3 2.44.56 3.56.66 4.52.76s1.78.18 2.8.22 2.26.04 3.28 0
1.84-.12 2.8-.22 2.08-.2 4.52-.76c2.42-.58 6.18-1.6 8.3-2.3 2.1-.72 2.58-1.08
3.44-1.54s2.12-1 3.38-1.64c1.24-.66 2.52-1.44 3.78-2.2s2.26-1.42 3.28-2.08"
fill="none" stroke="blue" stroke-width="2"/>}}
{{ </g>}}
{{ </g>}}
{{</svg>}}
It's transcoded as an empty image:
||Ouptut||Expected||
|!https://issues.apache.org/jira/secure/temporaryattachment/5b2ff023f170d85126baa749d724a83859cb091b/temp6871439060054730042_output.png!|
|
I attached a maven project with the minimum setup that reproduces the problem.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]