Ravi kiran Rimmanapudi created XGC-124:
------------------------------------------
Summary: Error during transcoding svg to Jpeg "Unable to transform
src image "
Key: XGC-124
URL: https://issues.apache.org/jira/browse/XGC-124
Project: XMLGraphicsCommons
Issue Type: Bug
Components: image writer
Reporter: Ravi kiran Rimmanapudi
Fix For: 1.5
Attachments: car.svg
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( ) ); }
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]