Shucks, I was about have some fun with Batik. But their navigation 
bar creates a ton of errors so I can't navigate the site. I have IE6 
w/Windows XP-pro. Also, being a developer, I keep the script-error 
reporting enabled. Because of this, their navigation package just 
goes crazy in reporting errors.

I wouldn't normally post this here, but hopefully someone can get 
back to them so they can fix the problem.

Francis

--- In svg-developers@yahoogroups.com, "Francis Hemsher" 
<[EMAIL PROTECTED]> wrote:
>
> Hi Doug & Tom,
> 
> This looks like it could be fun. I'll go for PNG and Batik: a bit 
of 
> a learning curve, but I think it's worth it.
> 
> btw, the "snapshot" svg view is handled nicely by having a 
> replication of the viewer's elements at the server. I send just 
the 
> snapshot Id's and let the server do its job in creating the 
document.
> 
> Thanks,
> Francis
> 
> --- In svg-developers@yahoogroups.com, thomas.deweese@ wrote:
> >
> > Hi All,
> > 
> > svg-developers@yahoogroups.com wrote on 04/20/2006 12:52:33 AM:
> > 
> > > Francis Hemsher wrote:
> > > | 
> > > | Based on that view, its elements, translations, and zoom 
> level, I can 
> > > | build an SVG document on the server. After It's built, then 
I 
> want to 
> > > | convert it into base64 (gif) and include that in the email.
> > > 
> > > Well, base64 is just an encoding; it doesn't equate to a GIF. 
> You can
> > > base64-encode PNGs (smaller than GIFs), or even ASCII text.
> > > 
> > > | Question...Has anyone converted an SVG document/elements to 
> > > | base64? And 
> > > | what's the relative size of the base64 vs SVG? I hope this 
is 
> > > | possible.
> > > 
> > > This should be fairly easy. Just send the SVG snapshot up to 
the 
> server,
> > > rasterize it (I'd use Batik), and use a base64 encoder to 
> convert the 
> > raster
> > > (there are lots of free command-line tools to do this), then 
> send that 
> > out
> > > in your email body.
> > 
> >    If you use Batik to do the rasterization, it already has a 
> > Base64OutputStream
> > which if given to the PNGTranscoder will 'on the fly' convert 
the 
> binary 
> > PNG 
> > stream into a Base64 stream suitable for inclusion in the e-mail.
> > 
> >    Good luck!
> > 
> > > In my experiments, I took a very verbose SVG file (one with 
lots 
> of 
> > shapes,
> > > groups, and gradients: 37KB), and saved it as a PNG and a GIF 
> (both
> > > 490x425), then base64-encoded it. The encoded PNG was slightly 
> smaller 
> > than
> > > the SVG (28KB), and the encoded GIF was almost double the SVG 
> (60KB). 
> > The
> > > base64 versions were about 40% larger than their raster 
> equivalents.
> > 
> >    Also PNG does real transparency and can go to 24/32bit not 
just 
> > pallette.
> >
>







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

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