[docbook-css] TIFF Support
David Holroyd
dave at badgers-in-foil.co.uk
Thu, 28 Oct 2004 12:42:37 +0000
On Thu, Oct 28, 2004 at 11:50:16AM +0100, martin.gautier@myrnham.co.uk wrote:
> Browsers, by default, don't support TIFF images.
>
> http://www.alternatiff.com seems to be the free cross-platform Browser
> plugin of choice that enables support for TIFF images within a HTML page.
>
> Using the <html:img> tag however does not work.
>
> http://www.alternatiff.com/howtoembed.html explains how to setup an HTML
> page that includes TIFFs. It looks to me like the following is the most
> generic:
>
> <object width=200 height=200
> data="placeholder.tif" type="image/tiff">
> <param name="src" value="placeholder.tif">
> <param name="toolbar" value="none">
> </object>
>
> ... where placeholder.tif is the image.
>
> Is it possible to edit db-bindings.xml to include specific support for
> different image types?
>
> I come across a lot of XML/DocBook documents that come with a pile of
> TIFFs (which are really good for creating PDFs for quality printing) and
> would love to be able to view them through CSS too.
That should be possible, yes.
I was thinking, along sililar lines, that it would be cool to try and
detect if the browser suports SVG, and then add an html:iframe to
inline the graphic file. There are special mozilla builds available
that display SVG (even mixed inline with HTML).
This will probably be one of the areas I'll hack on soon, but I'm
currently in the process of writing a CSS parser (partly as a
validation/documentation tool for this project), so it wont happen for a
bit.
dave