On Tuesday 02 January 2007 14:49, [EMAIL PROTECTED] wrote:
> 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).

Correct I need 300 dpi for print. 

I am aware of the view box option and it does work when passed at the command 
line. Now while I can revisit each SVG image and try to find the correct 
settings for each particular images view box, this type of thing is not 
practical. Some of our documents have upwards of 300 images in them. In 
addition, I cannot expect engineers using Inkscape to fiddle around with type 
of thing. So I will have to constantly monitor every SVG added by them.

Surely, there must be a way of doing this in an automated fashion. The whole 
documentation system is docbook, built using ant so I guess it can be done.

How can I use the getBBox you mentioned in earlier post?

p.s. Many thanks for your response.

Happy New Year

-- 
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]

Reply via email to