You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xmlgraphics.apache.org by "Ravi kiran Rimmanapudi (Jira)" <ji...@apache.org> on 2020/09/16 04:48:00 UTC
[jira] [Closed] (XGC-124) Error during transcoding svg to Jpeg
"Unable to transform src image "
[ https://issues.apache.org/jira/browse/XGC-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ravi kiran Rimmanapudi closed XGC-124.
--------------------------------------
Resolution: Not A Bug
> 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
> Priority: Major
> 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: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org