Вопрос

Use canvas.toDataURL('image/jpeg', 1) in Chrome, the image is lose a little seriously, but in Firefox, It's ok, almost lossless, even use default quality value 0.92. It seems does not working by setting the quality in Chrome.

Это было полезно?

Решение

It's a known issue and it's due to how chroma subsampling is handled.

Chrome do this differently than Firefox and Safari. The latter ones uses 4:4:4 at 1.0 setting while current Chrome doesn't. However, it seem as the latest Canary (version 33) do the same as the others.

In any case, until it has been solved it's very little you and I can do about it unfortunately...

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top