W3C home > Mailing lists > Public > public-html@w3.org > June 2008

Re: <canvas> JPEG quality

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Mon, 16 Jun 2008 02:49:48 +0200
Message-ID: <4855B8AC.2080003@lachy.id.au>
To: Ian Hickson <ian@hixie.ch>
Cc: HTML WG <public-html@w3.org>

Ian Hickson wrote:
> Added a way to pass the JPEG quality to toDateURL().

The spec doesn't seem to clearly define what to do when the number is 
outside the range of 0.0 to 1.0.  Should it use some default value?  It 
also doesn't define what the default value should be.

The IDL doesn't list the method as being able to take extra arguments. 
It only includes these two:

   DOMString toDataURL();
   DOMString toDataURL(in DOMString type);

The latter of those should be changed to:

   DOMString toDataURL(in DOMString type, [Variadic] in any args);

Lachlan Hunt - Opera Software
Received on Monday, 16 June 2008 00:50:28 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:32 UTC