Re: <canvas> JPEG quality

On Mon, 16 Jun 2008, Lachlan Hunt wrote:
> 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 default is whatever it would do if the argument was omitted.


> 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);

Done.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 5 August 2008 09:34:50 UTC