Hi Sean, Sean Wheller <[EMAIL PROTECTED]> wrote on 01/02/2007 06:52:56 AM:
> On Tuesday 02 January 2007 10:49, Sean Wheller wrote: > > On Monday 01 January 2007 03:22, [EMAIL PROTECTED] wrote: > > > As the SVG specification says they should. The Width/Height say > > > what size canvas the document should be drawn into. > > > > So perhaps the only thing to do is open each SVG, adjust the canvas to the > > required size. Well ... until I can get some time to automate the process. > > It seems that setting the canvas size smaller is not the solution. > Batik still renders an image with a huge amount of wasted space. Since you are setting '-dpi 300' this is correct (452pt =~ 6.277in * 300dpi =~ 1833 pix). What you probably want to have is a viewBox as well as a width and height. Something like: <svg width="452.64005pt" height="320.53pt" viewBox="0 0 452.64 320.53" [... the rest of the attrs ...] This should give you a 1.8K pixel picture of the 0,0 -> 452x320 rectangle of the canvas (Presumably you want the high resolution for print or something). > So while the SVG is set > <svg > xmlns:dc="http://purl.org/dc/elements/1.1/" > xmlns:cc="http://web.resource.org/cc/" > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > xmlns:svg="http://www.w3.org/2000/svg" > xmlns="http://www.w3.org/2000/svg" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd" > xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" > width="452.64005pt" > height="320.53pt" > id="svg2" > sodipodi:version="0.32" > inkscape:version="0.43" > sodipodi:docbase="/home/sean/work/ericsson/docs/trunk/images" > sodipodi:docname="hxc-block.svg" > version="1.0">" > > The resulting PNG file is > 1886x1336 pixel > -- > 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] >