[IPOL discuss] Vector graphics on IPOL: which format to use?
Miguel Colom
Miguel.Colom at cmla.ens-cachan.fr
Sun Jul 3 14:20:59 CEST 2011
> I am interested to know the outcome if anyone has tried Miguel's image
demo with other browsers. Text-only description is sufficient for me,
though screenshots are nice of course.
- With Cromium 12.0.742.112 (90304) Ubuntu 10.04, the SVG is embedded and
rendered correctly.
The same with Cromium 12.0.742.91 (87961) Ubuntu 11.04
I've read about the object tag [1] and with it embedding SVG works both in
Cromium and Firefox.
One has to change the IMG tag by the OBJECT tag:
<object data="image.svg" width=300 height=355 type="image/svg+xml"
id="svg"></object>
The OBJECT tag combined with PDF data makes Firefox start trying to
download a plugin, although in my case it didn't work.
I update my demo page [2] to add images with the OBJECT tag. Using the
OBJECT tag makes downloading the images not so easy as when the IMG tag is
used.
My conclusion is that we should use SVG using the OBJECT tag for vector
images and PNG files for raster images.
Best,
Miguel
[1] http://tiffanybbrown.com/2006/09/18/embedding-svg-in-xhtml/
[2] http://dev.ipol.im/~colom/images/images.html
More information about the discuss
mailing list