Hans,

can you please post an example that shows the problem? I don't know of
any displacement problem in either the JPEG or PDF transcoder. Thanks!

Concerning JPEG quality: You can use a hint to specify JPEG quality.

org.apache.batik.transcoder.image.JPEGTranscoder.KEY_QUALITY (Float)
See also:
http://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/transcoder/image/JPEGTranscoder.html
The default is 0.75.

On 28.03.2008 13:48:47 Hans Stoessel wrote:
> Hi
> 
> I transcode a SVG into a JPEG using the JPEGTranscoder. I set the quality to 
> 1.0 (maximum) and the resolution to 300 dpi.
> 
> I have 2 problems:
> 
> 
> Quality
> -------
> The qualitiy of the JPEG is bad, especially the texts (fonts). What can I 
> do?
> 
> 
> JGEP is truncated
> ------------------
> In my SVG I have a black frame around the SVG. When I transcode it to a 
> JPEG, the frame, and the whole SVG, is displaced. I mean the content from 
> the SVG is moved to the top and to the left. I can see a white space on 
> bottom and right where the frame should be.
> 
> What could be wrong?
> Is there a workaround?
> 
> By the way: I have the same problem when I trabscode the SVG with the 
> PDFTranscoder from FOP. Is something in my SVG wrong?
> 
> 
> Thanks for the help.
> 
> Hans
> 
> 



Jeremias Maerki


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

Reply via email to