Thank you

That looks like an interesting idea

Uwe

-----Ursprungliche Nachricht-----
Von: Thomas E Deweese [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 26. Februar 2003 13:29
An: Batik Users; [EMAIL PROTECTED]
Betreff: RE: [Uwe Knauer] use of image tag


>>>>> "HC" == Harm Cuppens <[EMAIL PROTECTED]> writes:

HC> I think Batik is not required to support GIF files by looking the
HC> SVG 1.1 Specification
HC> http://www.w3.org/TR/SVG11/struct.html#ImageElement

    Correct, SVG content that uses GIF images is not conformant
content.  It is possible that many viewers may render it but they are
not required to.

    The problem here is that the JDK doesn't provide a Stream
interface to there image docoders.  This means that we would have to
explicitly read all the GIF data into a byte array so we could call
Toolkit.createImage().  Right now we only use the JDK's decoder when
we have 'normal' URLS.  You could write a GIFRegistryEntry that is
along the lines of the JPEG/PNG/TIFF registry entires in
org.apache.batik.ext.awt.image.spi, in that context if we had already
matched the Magic Number for a GIF file, reading the whole stream
wouldn't be so bad.

    Good luck!

HC> Greetings, Harm

HC> -----Original Message----- From: Ezberlin, Prakte12-08
HC> [mailto:[EMAIL PROTECTED] Sent: woensdag 26
HC> februari 2003 11:45 To: [EMAIL PROTECTED] Subject: [Uwe
HC> Knauer] use of image tag


HC> Hello!

HC> I use the image tag with embedded graphics data.

HC> <image x="73.0" y="25.0" width="153.0"
HC> xmlns:xlink="http://www.w3.org/1999/xlink";
HC> xlink:href="data:image/[gif|jpg|png];base64, [EMAIL PROTECTED] ...."/>

HC> That works for JPEG and PNG, but not for GIF. I just wondered
HC> because "soft" links handle GIF. We encode the byte stream from
HC> the file as Base64 and place it directly it the xlink:href
HC> attribute as shown above. The Adobe plugin can handle
HC> Base64-encoded GIF.  <image xlink:href="file://C:/.../image.gif">
HC> works fine but is not what we want.

HC> For me it looks like that use of GIF is not (fully) supported. Any
HC> ideas, maybe we should use a differt encoding?

HC> Thank you Uwe

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


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



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

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

Reply via email to