Hello,
I am using batik to generate PNG from SVG created using Inkscape.
I am doing this as part of an ANT build.
<java jar="${batik.dir}/batik-rasterizer.jar"
classpathref="project.class.path.batik" output="batik.log" fork="true">
<arg line="-d ../build/images"/>
<arg line="-m image/png"/>
<arg line="-dpi 300"/>
<arg line="../images"/>
</java>
The PNG files are output but they contain the whole canvas size as defined in
the SVG source by Inkscape.
width="595.27557pt"
height="841.88977pt"
This results in the actual picture that is drawn on the canvas being
surrounded by a large whitespace. Obviously when such images are included in
a web page or PDF the result is not desired.
How can I tell batik to render only the picture and not the canvas?
I cannot guarantee that the picture drawn will always be at the same
coordinates on the canvas.
Any ideas welcome.
Thanks,
--
Sean Wheller
Technical Author
email: [EMAIL PROTECTED]
im: [EMAIL PROTECTED]
skype: seanwhe
cel: +27-84-854-9408
web: http://www.inwords.co.za
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]