You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by cbowditch <bo...@hotmail.com> on 2006/11/24 12:24:14 UTC

GIF Images embedded using data:

I'm having trouble with an image embedded inside an SVG. The image data
itself is inside the xlink:href attribute, e.g.

xlink:href="data:image/gif;base64,R0lGODlhjACMAMQAAP///wAA

etc.

The image isn't displayed. Instead I see the Squiggle logo. Is the data:
protocol supported by Batik?

Thanks,

Chris
-- 
View this message in context: http://www.nabble.com/GIF-Images-embedded-using-data%3A-tf2698422.html#a7524633
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: GIF Images embedded using data:

Posted by cbowditch <bo...@hotmail.com>.
Hi Thomas,

thanks for the reply. At least I know there isnt a problem in my code now.
Can I request that Batik issues a warning message when it encounters things
it can't handle? It saves hours of searching for a resolution.

Thanks,

Chris


Hi Chris,

    The real problem is the use of GIF (which isn't required to be 
supported by an
SVG implementation).  The decoding of GIF is handled by the Java Platform 
and
due to a quirk in the way the platform provides the functionality it 
was/is difficult to
use that functionality for Data protocol, so we don't.

     If you switch to PNG/JPEG this will work fine.



-- 
View this message in context: http://www.nabble.com/GIF-Images-embedded-using-data%3A-tf2698422.html#a7556576
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: GIF Images embedded using data:

Posted by th...@kodak.com.
Hi Chris,

    The real problem is the use of GIF (which isn't required to be 
supported by an
SVG implementation).  The decoding of GIF is handled by the Java Platform 
and
due to a quirk in the way the platform provides the functionality it 
was/is difficult to
use that functionality for Data protocol, so we don't.

     If you switch to PNG/JPEG this will work fine.

cbowditch <bo...@hotmail.com> wrote on 11/24/2006 06:24:14 AM:

> I'm having trouble with an image embedded inside an SVG. The image data
> itself is inside the xlink:href attribute, e.g.
> 
> xlink:href="data:image/gif;base64,R0lGODlhjACMAMQAAP///wAA
> 
> etc.
> 
> The image isn't displayed. Instead I see the Squiggle logo. Is the data:
> protocol supported by Batik?
> 
> Thanks,
> 
> Chris
> -- 
> View this message in context: 
http://www.nabble.com/GIF-Images-embedded-using-
> data%3A-tf2698422.html#a7524633
> Sent from the Batik - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org