Uploaded image for project: 'XMLGraphicsCommons'
  1. XMLGraphicsCommons
  2. XGC-124

Error during transcoding svg to Jpeg "Unable to transform src image "

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • None
    • 1.5
    • image writer
    • 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( ) ); }

       

       

      Attachments

        1. car.svg
          515 kB
          Ravi kiran Rimmanapudi

        Activity

          People

            Unassigned Unassigned
            ravirimmanapudi Ravi kiran Rimmanapudi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: