[jira] [Created] (BATIK-1291) Error during transcoding svg to Jpeg "Unable to transform src image "

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (BATIK-1291) Error during transcoding svg to Jpeg "Unable to transform src image "

Simon Steiner (Jira)
Ravi kiran Rimmanapudi created BATIK-1291:
---------------------------------------------

             Summary: Error during transcoding svg to Jpeg "Unable to transform src image "
                 Key: BATIK-1291
                 URL: https://issues.apache.org/jira/browse/BATIK-1291
             Project: Batik
          Issue Type: Bug
          Components: GVT Filters
    Affects Versions: 1.6.1
            Reporter: Ravi kiran Rimmanapudi
             Fix For: 1.9
         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: [hidden email]
For additional commands, e-mail: [hidden email]