Batik 1.6 SVG ERROR Page


Version   1.6 	
Platform  Java 	
System    any 	

More important features are listed first.

Filter module

No.
Bug description
1
- feColorMatrix - there is bad implementation of the values attribute - I think, problem is caused by the incorrect parsing operation: white spaces should be IGNORED, but aren't! - also it seems another problem are real numbers written as ".5" ".79" etc.
- test case
- Batik log:
Loading document...
Loading document completed in 135 ms
Building document...
org.apache.batik.bridge.BridgeException: feColorMatrix.svg:42
The attribute "values" of the element "feColorMatrix" is invalid
        at org.apache.batik.bridge.SVGFeColorMatrixElementBridge.convertValuesToSaturate(Unknown Source)
        at org.apache.batik.bridge.SVGFeColorMatrixElementBridge.createFilter(Unknown Source)
        at org.apache.batik.bridge.SVGFilterElementBridge.buildLocalFilterPrimitives(Unknown Source)
        at org.apache.batik.bridge.SVGFilterElementBridge.buildFilterPrimitives(Unknown Source)
        at org.apache.batik.bridge.SVGFilterElementBridge.createFilter(Unknown Source)
        at org.apache.batik.bridge.CSSUtilities.convertFilter(Unknown Source)
        at org.apache.batik.bridge.SVGTextElementBridge.buildGraphicsNode(Unknown Source)
        at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
        at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
        at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
        at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
        at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
        at org.apache.batik.swing.svg.GVTTreeBuilder.run(Unknown Source)
Building document failed.
2
- feConvolveMatrix - bad implementation of the kernelMatrix attribute
- test case
- XML code:
     <feConvolveMatrix in="SourceGraphic"
       edgeMode="duplicate"
       order="3,3" kernelUnitLength="1"
       kernelMatrix=" 0 -1  0
                     -1  5 -1
                      0 -1  0"/>
3
- feTurbulence - bad implementation of the seed attribute
- test case
- code:
<feTurbulence result="b2" in="dilate" seed="1.7"
              type="fractalNoise" numOctaves="5" baseFrequency="0.05"/>
4
- feSpecularLighting+feSpotLight - incorrect computation of the Phong model
- test case and CORRECT output:
5
- bad computation of the feGaussianBlur filter (probably incorrect scaling of stdDeviation attr.?)
- test case and CORRECT output:

- INCORRECT output of the Batik renderer:
6
- NO any SVG graphics is correctly scaled at 100% by Batik Squiggle browser
7
- b-bumps.svg - produces NO output in Batik
- test case