Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Bug
-
None
-
None
Description
The attached svg when transforming into JPEG getting error.
"Unable to transform src image".
org.apache.batik.gvt.renderer
StaticRenderer-->repaint(RectListManager areas) {} getting error from this method.
1.9 version of batik is used.
was the attached svg supported to transcode? If it is supported any help on how to resolve this issue is appriciated.
Also want to know if 3d svgs will they be transformed to jpeg?
please let me know if any more details are needed.
Below is the usage how it is used.
// convert svg image to JPEG image bytes// convert svg image to JPEG image bytes JPEGTranscoder transcoder = new JPEGTranscoder( ); // set the transcoding hints transcoder.addTranscodingHint( JPEGTranscoder.KEY_QUALITY, new Float( .8 ) ); // create the transcoder input String svgURI = url.toString( ); TranscoderInput input = new TranscoderInput( svgURI ); // create the transcoder output ByteArrayOutputStream ostream = new ByteArrayOutputStream( ); TranscoderOutput output = new TranscoderOutput( ostream ); try { transcoder.transcode( input, output ); } catch ( TranscoderException e ) { System.out.println("error while transcoding..." + e); e.printStackTrace(); } // flush the stream ostream.flush( ); // use the outputstream as Image input stream. in = new ByteArrayInputStream( ostream.toByteArray( ) ); }