It is said on HTML Canvas Element Interface page of Gecko DOM Reference, that:
If the requested type is image/jpeg, then the second argument, if it is between 0.0 and 1.0, is treated as indicating image quality; if the second argument is anything else, the default value for image quality is used. Other arguments are ignored.
But on practice I get: Security error" code: "1000.
Is it something that is not yet supported? Or why it might be happening? Any insightful advice or explanation might be helpful.
UPDATE:
I use newest File API to load local image file into memory first, scale it with the canvas and then export - with custom quality.