Hi Nagabhushan,

Nagabhushan Sss <[email protected]> wrote on 12/03/2009 06:03:08 AM:

> Given an SVG file,  Batik Rasterizer produces the corresponding JPEG/PNG
> image. I was interested in knowing the size of the output JPEG/PNG image
> produced.

    This is complex because the Rasterizer factors in a number of 
hints/command line options etc to arrive at the final size.  If none
of those options are used then the document's "native" size is based on
following the CSS/SVG rules for fitting the document in a default 
400x400 viewport, and the Pixel to Millimeter conversion factor
(defaults to 0.264583 or 96dpi).

> Nagabhushan Sss <[email protected]> wrote on 12/02/2009 03:21:01 AM:
> 
> > I know it is possible in Batik Rasterizer to produce image for a given
> > width and height.
> > Is there a way to calculate the size required to produce an image that 
is
> > rendered at actual size ?

[email protected] wrote on 02/12/2009 04:32 PM:

>     Care to define what 'actual size' means?
> 
>     In general SVG is resolution independent so the image _may_
> have no 'actual size'.  I'm guessing this is not your case so you
> need to let us know why you think your documents have an actual size.

Reply via email to