You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.
canvas.toDataURL(type, encoderOptions);
...
encoderOptions Optional
A Number between 0 and 1 indicating the image quality to use for image formats that use lossy compression such as image/jpeg and image/webp.
If this argument is anything else, the default value for image quality is used. The default value is 0.92. Other arguments are ignored.
It would be useful to be able to specify a value of 1.0 for maximum image quality.
The text was updated successfully, but these errors were encountered:
@VinceG thank you for the quick reply! I may submit a PR if we end up using vue-web-cam, but I'm considering whether to use <input capture="camera"> instead. I submitted another issue about it here: #67
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The call to
canvas.toDataURL()
omits the second parameter for controlling the image quality:vue-web-cam/src/webcam.vue
Line 267 in 42d9b6e
From https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL
It would be useful to be able to specify a value of 1.0 for maximum image quality.
The text was updated successfully, but these errors were encountered: