Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: CMF

Support for SVG

 

 

Zope cmf RSS feed   Index | Next | Previous | View Threaded


charlie at begeistert

Mar 14, 2010, 7:58 AM

Post #1 of 1 (478 views)
Permalink
Support for SVG

Hi,

I made my first SVG animation this weekend and had almost as much fun
getting it to play nicely with Zope as I did writing the animation! Even
though browser support is still very patchy - only Opera and webkit
(Safari, Chrome, Nokia) can handle animations - it does provide an
extremely compact alternative to Flash for simple animations*. Firefox is
due to support animation in the next patch release of Gecko, though who
knows when that may be! For Internet Explorer you can use either a plugin
or Google's javascript library http://code.google.com/p/svgweb/ - hardly
worth it for one-offs as it's a 2,5 MB monster that still relies on Flash.

Anyway having tried a few things the question I have is, what's the best
way of supporting svg in the CMF?

Currently the easiest approach isusing a .metadata file and registerting
the .svg extension for FSFile because FSImage ignores .metadata and
mimetypes altogether

Once image/svg+xml has been added to zope.contenttype.mime.types a
separate .metadata file becomes unnecessary.

Would it be an idea to add content type checking based on mime types to
FSImage's use of getImageInfo? Or is this too much of an edge case to be
worth bothering with?

Charlie

* For comparison:
http://www.begeistert.org/images/begeistert.svg is 2.4 kB
http://www.begeistert.org/images/begeistert022.swf is 29 kB
http://www.begeistert.org/images/begeistert022.gif 130 kB
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226
_______________________________________________
Zope-CMF maillist - Zope-CMF [at] zope
https://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

Zope cmf RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.