Re: [pkix] CertImage: SVGZ in data: URI

Stefan Santesson <stefan@aaa-sec.com> Mon, 22 February 2010 22:01 UTC

Return-Path: <stefan@aaa-sec.com>
X-Original-To: pkix@core3.amsl.com
Delivered-To: pkix@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 39B233A82A1 for <pkix@core3.amsl.com>; Mon, 22 Feb 2010 14:01:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.504
X-Spam-Level:
X-Spam-Status: No, score=-1.504 tagged_above=-999 required=5 tests=[AWL=-0.651, BAYES_00=-2.599, HELO_EQ_SE=0.35, MIME_QP_LONG_LINE=1.396]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HtQgf3dMSNbM for <pkix@core3.amsl.com>; Mon, 22 Feb 2010 14:01:13 -0800 (PST)
Received: from s87.loopia.se (s87.loopia.se [194.9.95.114]) by core3.amsl.com (Postfix) with ESMTP id DEDB43A8259 for <pkix@ietf.org>; Mon, 22 Feb 2010 14:01:12 -0800 (PST)
Received: from s29.loopia.se (s34.loopia.se [194.9.94.70]) by s87.loopia.se (Postfix) with ESMTP id 2CB27313C9A for <pkix@ietf.org>; Mon, 22 Feb 2010 23:03:19 +0100 (CET)
Received: (qmail 45109 invoked from network); 22 Feb 2010 22:03:10 -0000
Received: from 213-64-142-247-no153.business.telia.com (HELO [192.168.1.16]) (stefan@fiddler.nu@[213.64.142.247]) (envelope-sender <stefan@aaa-sec.com>) by s29.loopia.se (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for <James.H.Manger@team.telstra.com>; 22 Feb 2010 22:03:10 -0000
User-Agent: Microsoft-Entourage/12.23.0.091001
Date: Mon, 22 Feb 2010 23:03:06 +0100
From: Stefan Santesson <stefan@aaa-sec.com>
To: "Manger, James H" <James.H.Manger@team.telstra.com>, pkix <pkix@ietf.org>
Message-ID: <C7A8BDAA.87B2%stefan@aaa-sec.com>
Thread-Topic: [pkix] CertImage: SVGZ in data: URI
Thread-Index: Acqv8Q1iJKpk7jZd2kKCISghouJiagAXebDQAAyJXAcAA+YV5wAApeQOAN3hjBc=
In-Reply-To: <255B9BB34FB7D647A506DC292726F6E11250998A55@WSMSG3153V.srv.dir.telstra.com>
Mime-version: 1.0
Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable
Subject: Re: [pkix] CertImage: SVGZ in data: URI
X-BeenThere: pkix@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: PKIX Working Group <pkix.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/pkix>
List-Post: <mailto:pkix@ietf.org>
List-Help: <mailto:pkix-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pkix>, <mailto:pkix-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Feb 2010 22:01:14 -0000

James,

I asked Yngve Pettersen from Opera how they would treat a data URL with
image/svg+xml containing svgz. He confirmed that this works just fine.

/Stefan


On 10-02-18 1:50 PM, "Manger, James H" <James.H.Manger@team.telstra.com>
wrote:

> Stefan,
> 
> The certimage-06 now makes it absolutely clear how SVGZ must be supported.
> That is great.
> 
> It might mean a little bit of SVG-specific code needs to appear in an
> otherwise generic "data URI"/"media type" block of code - but that's a very
> minor quibble.
> If someone has tried a data URI with SVG and with SVGZ in an existing tool
> that supports both, that would be ideal. Perhaps in an Opera browser?
> 
> My concern is resolved.
> 
> --
> James Manger
> 
> ________________________________________
> From: Stefan Santesson [stefan@aaa-sec.com]
> Sent: 18 February 2010 22:51
> To: Stefan Santesson; Manger, James H; pkix
> Subject: Re: [pkix] CertImage: SVGZ in data: URI
> 
> James,
> 
> I have now submitted an update:
> 
> http://tools.ietf.org/rfcdiff?url2=draft-ietf-pkix-certimage-06.txt
> 
> Does this resolve your concerns?
> 
> /Stefan
> 
> On 10-02-18 10:59 AM, "Stefan Santesson" <stefan@aaa-sec.com> wrote:
> 
> James,
> 
> The differentiation in content encoding given by the file extension .svg or
> .svgz is, as you point out, lost when providing the image in a ³data:² URI.
> Image/svg+xml is however a valid mediatype for both svg and svgz encoded
> content and thus I see nothing wrong in including compressed svgz data under
> that media type.
> 
> See for example: http://wiki.svg.org/MIME_Type
> 
> I agree with you that the text in the draft should be more specific about this
> and explicitly allow both svg and svgz under image/svg+xml with added
> reference to SVG 1.1 section 1.2 and RFC 1952 (GZIP). I would also hate to
> loose the compression.
> 
> I¹ll do some updates and resubmit.
> 
> /Stefan
> 
> 
> On 10-02-18 5:28 AM, "Manger, James H" <James.H.Manger@team.telstra.com>
> wrote:
> 
> Stefan,
> 
> Does a ³data:² URI with a gzipped SVG work (SVGZ instead of SVG) ‹ as in the
> example in appendix A?
> There is nowhere in a ³data:² URI [RFC2397] to indicate the Content-Encoding.
> The only way to parse it is to use heuristics to guess if the content is SVG
> or SVGZ.
> The heuristic is easy (a GZIP value starts with 2 magic bytes 1F 8B), but I
> don¹t know if tools commonly do this.
> Perhaps the certimage spec needs to explicitly say that SVG and SVGZ are valid
> in a data URI that lists the image/svg+xml media type. It would be a shame to
> lose the compression (x5.6 in the example).
> 
> _______________________________________________
> pkix mailing list
> pkix@ietf.org
> https://www.ietf.org/mailman/listinfo/pkix