>>>>> "RS" == Rolf Schumacher <[EMAIL PROTECTED]> writes:

RS> I produced two svg images: i400x350.svg and i1200x600.svg.  Do you
RS> have an idea, why this use of transcoder works fine as long as any
RS> dimension of the svg image is not more than 400 pixels?

RS>   TranscoderInput tin = new TranscoderInput(new
RS> File("i400x350.svg").toURL().toString()); OutputStream pout = new
RS> FileOutputStream(new File("i400x350.png")); PNGTranscoder p = new
RS> PNGTranscoder(); TranscoderOutput ptout = new
RS> TranscoderOutput(pout); p.transcode(tin, ptout); pout.flush();
RS> pout.close();

RS> I tried several things, playing around with KEY_WIDHT or KEY_AOI
RS> but can't figure out transcoder always takes the upper left 400 by
RS> 400 square out of the svg image.

    Setting KEY_WIDTH (you misspelled it above) should enable you to
tell the transcoder the desired output size.  Your code above doesn't
show where/how you are setting this hint, so I'm guessing this is your
problem.  Try something like:

          p.addTranscodingHint(KEY_WIDTH, new Float(1200));

RS> If you like to have look at the svgs and pngs I'll mail it to you
RS> if the upload does not work.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to