xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Swearingen, David W." <dwswearin...@tasc.com>
Subject RE: Native Image format
Date Tue, 05 Mar 2002 21:46:59 GMT
That's a JPEG image, base64-encoded.  But if you don't know what the format
is, I'm not sure why you'd need to know, i.e., there are plenty of tools to
do the encoding for you, so the details of the format itself are not
important imho.  More important are the differences between JPEG, PNG, GIF
etc in terms of fidelity, file size, color pallette and the like.

David

-----Original Message-----
From: Steven Dow [mailto:sdow@instepsoftware.com]
Sent: Tuesday, March 05, 2002 4:39 PM
To: Batik Users
Subject: Native Image format



Can someone tell me how a jpg is translated to the format below?  The
documentation I've found does not give much detail about this method of
embedding images.  If you paste this simple example into a new SVG file you
will see the result is an image.  What is the translation algorithm?  Any
help is much appreciated...

Steven

<svg width="4.0in" height=" 4.0in" viewBox="0 0 200 200">
<image width="60" height="60"
xlink:href="data:image/jpg;base64,/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQ
AEAAAAPAAA/+4ADkFkb2JlAGTAAAAAAf/b
AIQABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoKDBAMDAwMDAwQDA4PEA8ODBMTFBQTExwbGxsc
Hx8fHx8fHx8fHwEHBwcNDA0YEBAYGhURFRofHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8f
Hx8fHx8fHx8fHx8fHx8fHx8f/8AAEQgAPAA8AwERAAIRAQMRAf/EAJwAAAMBAAMBAAAAAAAAAAAA
AAYHCAQAAgUBAQADAAMBAAAAAAAAAAAAAAADBAUAAQIGEAABAwIEAwUGAwUJAAAAAAABAgMEEQUA
IRIGMRMUQWEiFQdRcTIjFhfBQlLwgaFiM7GSQ1ODk3QIGBEAAQMDAgQEBAYDAAAAAAAAAQARAiED
BDESQSITBVFhgTLwoWIUcZGxwdEj4UIG/9oADAMBAAIRAxEAPwCqcYsQNv8A9WrDtNfQIHmF8WkF
MBtQSGwr4VPuZhsHs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xJQlS3knltioGWrTRX78Hy7PUwmpuiAR6a/JK413ZmE12yJH5r
Hvm9W3byBAjIS7KmUXIXqCVNVSBpoNWfeMR8GxKVSVYy70Y0CUdqtFzvd4TbYDRk3C4vIbaAJUSV
nIEmuXaT2DFPbqUpu0CtL7U2v7T/AEDVOjpdHUUy6uvN53t/rZ+7LCm/mdN7OVkY3a02672yTbLi
wmTBltlqQyvgpKv7D2g9hxyCy6IdSz6helV92M3KbYSubtWQsuMzkp1FgnIIkJTTT2eP4T3HLF3B
y4SG2VJLz/ccO4CJRrEIdsVtt3l633JCkusuIEduleZrrqJoRTLgcUNpBAZSpXQQSSx8E0dp7+tc
1pi03hh6a4g8tl1xPPcZ8ISpSXPiplX4cu/CGThSiTKFPk6fxO4QkBCYJ8OLLz/VpAW8hue483Zo
jafLHWNCgVJAGigVUEdhKfDjWFAGNBzHVd505CYc8o9qWjO23butmEw07PmyVK5DXLBkkk9mk+FP
bVQweeNGIclghWsuUi0Q8lRPox6KQNktG7T0Jd3DIRpqDrTGQrihCu1Z/Moe4ZcYmReiS0Pb+qv4
1qQDzPN+iamFU0uYxYur3K5S+dp5Ok8zXTTppnqrlSmMWKefUP7EdU75Zz/MqnX5Lo6XXX83N+R/
t4uYX3TfT9Xw6gdw+04+76fhkum+X1ifLebq7OGunbXR+GLAduZl5w7X5NyKY/ldYv1p5z0Fflcn
laNX82vxfjhWW+vS2On4bGHW6jJ6enX236FX0d0/AdTpr1X+tzfncf1ZezEDL627+x/2XpsLobf6
mZGGFE6uYxYv/9k=" transform="matrix(1 0 0 1 30 80)"/>
</svg>

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

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


Mime
View raw message