Hi Andreas,

ok, I'll recheck the viewBox docs in the spec, just to be sure I'm
doing everything right. I'll also submit a post on the inkscape ML and
see what comes back.

I had thought about using ImageMagick for the conversion as well, but
from the quick skim of some of the inkscape docs, it seems *almost*
the right tool for the job... I like the option of piping stuff
through it on the command line, in particular, the 'simplify' function
looks a really cool option for me as I have many over-verbose
polylines which I think could be refactored down in size, so I could
then re-import them and render them out to the web eventually.

Btw, have enjoyed many of your articles on carto.net .. been very
helpful in getting up to speed with svg and cartography.  :)

thanks,
paul 

--- In [email protected], "Andreas Neumann" <[EMAIL PROTECTED]>
wrote:
>
> Hi Paul,
> 
> the viewBox is the way to go here.
> 
> If Inkscape and Illustrator don't support viewBoxes correctly, its a 
> bug in these software applications. The viewBox has nothing to do 
> with a browser. They should work in authoring tools as well, if 
> properly implemented. Perhaps you should discuss this in the Inkscape 
> mailinglist as well? I am also interested that Inkscape gets proper 
> viewBox support.
> 
> If you want to convert individual svg files with viewBoxes set, 
> Apache Batik is a very good tool to convert SVG to other formats 
> (such as PNG/TIF/PDF/JPEG). See http://xmlgraphics.apache.org/batik/
> 
> Imagemagick can also convert SVGs to other formats, don't know how 
> well it works with viewBoxes.
> 
> Andreas
> 
> 
> --- In [email protected], "sawshedges" <sawshedges@> 
> wrote:
> >
> > hi all,
> > 
> > Is it possible to reset the originating x and y in svg without a
> > browser and the viewBox attribute? To explain briefly my problem. I
> > want to render numerous UK county outlines in their own svg 
> documents.
> > However, all the coords to create the polygons for the outlines are
> > derived from UK ordnance survey data. This means that the x and y
> > origins all start from bottom left of the UK (near the Scilly 
> Isles)
> > and so rendering  say  a county in the middle of the UK leaves a 
> large
> > amount of whitespace to the left and also below (I already do the
> > minus conversion on the y axis to render that correctly rather than
> > use scale(1 -1) ).
> > 
> > I need, if possible, to _shift_ the rendered county towards the 
> bottom
> > left origin point thus keeping the area smaller and focusing 
> solely on
> > the rendered county. .e.g. render all counties into their own 
> 500,500
> > svg document.
> > 
> > Looking over the spec I've tried variations on translate() and
> > viewBox, but I think these mainly work when rendered via a browser?
> > I'm rendering the counties down to specific files and then checking
> > them via Inkscape so I can then eventually output them as PNG's. 
> > 
> > Can anyone give me any pointers on if this is possible and how I 
> might
> > attack it pls?
> > 
> > TIA,
> > Paul
> >
>




-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to