David VanderBrooke wrote:
> 
> I've tried various experiments with the image tag and have not had much success.  I 
>can't find much documentation on supported features so hopefully, someone can help.

I believe that Batik supports the <image> tag completely.  Your best
documentation for the <image> tag is the SVG working draft
specification.

> 
> Using batik 1.0
> 
> I would like to include the image in the svg via base64 encoding.  The examples work 
>for png but any pngs I generate don't work.  I've taken the example base64 strings 
>and placed them in my svg and it works.  I've used my Base 64 decoder to decode the 
>examples and they make good png files.  My files do to work fine in the Adobe svg 
>viewer.

One thing to look out for is that the beginning of the xlink:href
section with the base64-encoded data can't have a line break in it
(that is, the first line break should be the one *after* the first
line of encoded data).

I assume that you are familiar with the dataProtocol.svg example.  

> 
> Are there certain kinds of pngs that work?
> 
> To base 64 encode I'm using the sun.misc encoder and encoding only the file contents.
> 
> I tried various forms of tiff files as well, mime type tiff.  None worked, either by 
>base 64 or referenced.

This suggests that something is amiss in your configuration, or that
for some reason you do not have the tiff decoder in your packages ?

> 
> Gif files work if I reference them.  I didn't try base 64 encoding and including 
>them.
> 
> What should work now or where can I look for documentation?

The best place to look for this info is the batik "status" page:
http://xml.apache.org/batik/status.html
If you download the BE-test suite and compare the svg contents with
the status page you will see exactly which features are known to work
in Batik.  Batik's coverage of static SVG features is excellent at
this time, so if something fails to work then it is probably either a
bug or operator error :-)  Of course SVG files can have bugs as well,
and in some cases there may be files that are technically in error
which still display in other SVG viewers.

> Thanks in advance.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
--------------
Bill Haneman
Gnome Accessibility / Batik SVG Toolkit
Sun Microsystems Ireland

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

Reply via email to