Hi,

I had a quick look at your file. There are some issues:

the file is 808kb.

I have some suggestions:

* make the file conforming. your ids with only number are not valid. An id
must start with a character and cannot contain only numbers. Make sure
your SVG file validates in an XML editor

* the bulk of your file consists of useless <polygon/> elements. This
strange, crappy looking figure, probably the user, in the upper left
corner. If I delete this strange figure, the unzipped filesize shrinks to
80kb.

* don't use style=" font-family: Arial; font-size: 10pt; font-weight:
normal; font-style: normal; text-decoration: none; word-spacing: normal;
letter-spacing: normal;  stroke: rgb(0,0,0); stroke-width: 0.0;  fill:
rgb(0,0,0);" over and over again. Define it once in a group or define CSS
classes. The use of style="" is not very intelligent.

If you follow these rules and more intelligently structure your graphics
you can do the same content in 10kb or less and it will render in less
than a second.

Andreas

> 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.
>>
>
>
> --
> Andreas Neumann
> Böschacherstrasse 6, CH-8624 Grüt/Gossau, Switzerland
> Email: [EMAIL PROTECTED], Web:
> * http://www.carto.net/ (Carto and SVG resources)
> * http://www.carto.net/neumann/ (personal page)
> * http://www.svgopen.org/ (SVG Open Conference)
> * http://www.geofoto.ch/ (Georeferenced Photos of Switzerland)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> --------------------------------------------------------------------------------
> 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]


-- 
Andreas Neumann
Böschacherstrasse 6, CH-8624 Grüt/Gossau, Switzerland
Email: [EMAIL PROTECTED], Web:
* http://www.carto.net/ (Carto and SVG resources)
* http://www.carto.net/neumann/ (personal page)
* http://www.svgopen.org/ (SVG Open Conference)
* http://www.geofoto.ch/ (Georeferenced Photos of Switzerland)


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

Reply via email to