Looking at the polygon's content, many points are aligned
For instance:
   2 4 0   1 6 6 , 2 4 0   1 6 5 , 2 4 0   1 6 4 , 2 4 0   1 6 3
A first improvement might be to remove useless points.
Further improvements might be using splines instead of lines
(to further reduce the number of vertices).
If the image is converted from a raster image, I'd personally suggest
you to use a good quality raster to vector converter.
Won't tell you the name, but there are a couple of very good free
rasterizers around (google for vectorizer online).
Cheers,
Luca.

Praveen Nayak wrote:
I had to zip it, as the size got it rejected.

Praveen

-----Original Message-----
From: Praveen Nayak Sent: Wednesday, December 19, 2007 2:19 PM
To: '[email protected]'
Subject: RE: A query on Batik Performance

Hi,

Here is a sample SVG file. It also had JavaScript linked to it, but I could not 
send it as server kept rejecting it as a spam

Can compressing the Svg file have any affect?

Thanks for your help.
Praveen

-----Original Message-----
From: Andreas Neumann [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 19, 2007 1:51 PM
To: [email protected]
Subject: Re: A query on Batik Performance

well my guess is that your jpeg does not contains as many details as your
SVG file. A 1MB SVG file can be quite detailed and you can zoom in and
interact whereas with jpeg you can't. Naturally, SVG loads a bit longer
then jpeg. That is normal.

If you want to speed up loading times, it is probably best to improve the
structure or simplify your SVG file. For any suggestions for improvements
you would have to post a sample file so we can have a look at the SVG code
of the SVG graphics. A lot of software that generates SVG codes creates
sub-optimal code.

Andreas


Hi,



I have SVG Diagrams hosted inside Batik Viewer and the viewer inside an
applet. I am using the 1.6 version of Batik.

When I have an SVG image that is > 1 MB in size, I see that image takes
long to load (> 10 seconds).

1. Is there some way I can improve the performance?

2. Can I get an idea in which area I would get most of the performance
problem?

A jpeg image of the same diagram seems to load much quicker.



Any explanation here would really be useful.



Thanks,

Praveen
--------------------------------------------------------------------------------
Telelogic Lifecycle Solutions:
Helping You Define, Design & Deliver Advanced Systems & Software
Learn More at www.telelogic.com

Praveen Nayak
Technical Leader
Telelogic India Pvt Ltd
#58, 1- 4 HM Towers,
Brigade Road,
560 025 Bangalore
India

Phone: +91 (80) 419 95800 x327
Fax:
Mobile phone:
[EMAIL PROTECTED]
http://www.telelogic.com

Telelogic - Requirements-Driven Innovation!
-------------------------------------------------------------


The information contained in this e-mail, including any attachment or
enclosure, is intended only for the person or entity to which it is
addressed and may contain confidential material. Any unauthorized use,
review, retransmissions, dissemination, copying or other use of this
information by persons or entities other than the intended recipient is
prohibited.



------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to