[ 
https://issues.apache.org/jira/browse/BATIK-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15739817#comment-15739817
 ] 

Jan Tošovský commented on BATIK-1106:
-------------------------------------

In java.awt.image.AffineTransformOp.filter there is the following code:
if (ImagingLib.filter(this, src, dst) == null) {
   throw new ImagingOpException ("Unable to transform src image");
}

In the ImagingLib code, 
http://www.docjar.org/html/api/sun/awt/image/ImagingLib.java.html, a wrapper 
for native library, there is comment 'If the implementing class cannot handle 
the op, ... the method will return null;

I suspect unsupported BufferedImage format, especially its Raster type 
sun.awt.image.IntegerInterleavedRaster or DirectColorModel.

Can this BufferedImage format be altered somehow? Or is it JDK what has to be 
fixed?



> ImagingOpException when rasterizing simple SVG with filter into PDF
> -------------------------------------------------------------------
>
>                 Key: BATIK-1106
>                 URL: https://issues.apache.org/jira/browse/BATIK-1106
>             Project: Batik
>          Issue Type: Bug
>          Components: SVG Rasterizer
>    Affects Versions: trunk
>         Environment: Win7, Oracle JDK 8
>            Reporter: Jan Tošovský
>         Attachments: line.png, line.svg
>
>
> While rasterizing simple SVG into PNG is fine, in case of PDF output I am 
> getting the following error:
> java.awt.image.ImagingOpException: Unable to transform src image
>         at java.awt.image.AffineTransformOp.filter(Unknown Source)
>         at org.apache.batik.ext.awt.image.rendered.AffineRed.genRect(Unknown 
> Source)
>         at org.apache.batik.ext.awt.image.rendered.AffineRed.copyData(Unknown 
> So
> urce)
>         at org.apache.batik.ext.awt.image.rendered.PadRed.copyData(Unknown 
> Sourc
> e)
>         at 
> org.apache.batik.ext.awt.image.rendered.CompositeRed.genRect(Unknown
> Source)
>         at 
> org.apache.batik.ext.awt.image.rendered.CompositeRed.copyData(Unknown
>  Source)
>         at 
> org.apache.batik.ext.awt.image.rendered.Any2sRGBRed.copyData(Unknown
> Source)
>         at 
> org.apache.batik.ext.awt.image.rendered.AbstractRed.getData(Unknown S
> ource)
>         at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown 
> Source)
>         at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown 
> Source)
>         at 
> org.apache.batik.ext.awt.image.renderable.PadRable8Bit.paintRable(Unk
> nown Source)
>         at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown 
> Source)
>         at 
> org.apache.batik.ext.awt.image.renderable.PadRable8Bit.paintRable(Unk
> nown Source)
>         at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown 
> Source)
>         at 
> org.apache.batik.ext.awt.image.renderable.FilterChainRable8Bit.paintR
> able(Unknown Source)
>         at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown 
> Source)
>         at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source)
>         at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown 
> Sou
> rce)
>         at org.apache.batik.gvt.CanvasGraphicsNode.primitivePaint(Unknown 
> Source
> )
>         at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source)
>         at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown 
> Sou
> rce)
>         at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source)
>         at org.apache.fop.svg.PDFTranscoder.transcode(PDFTranscoder.java:183)
>         at 
> org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown S
> ource)
>         at 
> org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown S
> ource)
>         at org.apache.batik.apps.rasterizer.SVGConverter.transcode(Unknown 
> Sourc
> e)
>         at org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown 
> Source)
>         at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)
>         at org.apache.batik.apps.rasterizer.Main.main(Unknown Source)
> ... error (SVGConverter.error.while.rasterizing.file)



--
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