W3C home > Mailing lists > Public > www-svg@w3.org > August 2000

Re: Using data URL's (was Re: images)

From: Jon Ferraiolo <jferraio@Adobe.COM>
Date: Fri, 04 Aug 2000 12:10:41 -0700
Message-Id: <200008041907.MAA11859@mail-345.corp.Adobe.COM>
To: Leonard Rosenthol <leonardr@lazerware.com>
Cc: www-svg@w3.org
Leonard,
It appears that Adobe misunderstood the spec and thus isn't generating the
MIME type string as it should. We didn't notice this because our viewer
doesn't need the MIME type setting. It always sniffs the contents to figure
out what type it is, rather than depend on the MIME type setting that is
provided. 

This has been logged as a bug and will be fixed in a future release. The
implication of this bug is that content generated from Adobe Illustrator 9
which embeds images inline does not include a MIME setting, so other
software that wants to open that file will only be able to open it if they
also sniff the contents to determine what type of image it is. (Or the
files will need to be corrected manually.)

(Red faced)
Jon

At 01:16 PM 8/4/00 -0400, Leonard Rosenthol wrote:
>At 8:43 AM -0700 8/4/00, Jon Ferraiolo wrote:
>>You can embed images (or fonts or whatever) inline into an SVG by using the
>>"data" URL scheme, which documented at ftp://www.ietf.org/rfc/rfc2397.txt
>>
>>Here is an example of something I exported from Adobe Illustrator 9. The
>>original file contained only a single raster image which is a checkerboard
>>of red, green and blue squares. I am pretty sure that the embedded raster
>>file is a PNG.
>
>	This raises the obvious question - how do you tell??
>
>	As I read the RFC, you are supposed to define the mediatype 
>of the data object.  I would suspect that this should be "image/png", 
>or "image/jpeg", but in your example, the datatype is left blank. 
>According to the RFC, that means it's text/ascii - but it's not :(.
>
>	Is there an undefined "default" for SVG viewers to use that 
>is different from the RFC, or is this simply a bug in Illustrator's 
>SVG export module?
>
>
>Leonard
>-- 
>----------------------------------------------------------------------------
>                   You've got a SmartFriend in Pennsylvania
>----------------------------------------------------------------------------
>Leonard Rosenthol      			Internet:       leonardr@lazerware.com
>					America Online: MACgician
>Web Site: <http://www.lazerware.com/>
>FTP Site: <ftp://ftp.lazerware.com/>
>PGP Fingerprint: C76E 0497 C459 182D 0C6B  AB6B CA10 B4DF 8067 5E65
> 
Received on Saturday, 5 August 2000 19:57:26 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:19 GMT