fix: Use image/jpeg as MIME type for canvas.toBlob (#844)
Retargeted. See https://github.com/microsoft/VoTT/pull/801. Closes https://github.com/microsoft/VoTT/pull/801, https://github.com/microsoft/VoTT/issues/838.
This commit is contained in:
Родитель
44f9e4b42f
Коммит
6df00da380
|
@ -136,7 +136,7 @@ export default class HtmlFileReader {
|
|||
canvas.width = video.videoWidth;
|
||||
const ctx = canvas.getContext("2d");
|
||||
ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
|
||||
canvas.toBlob(resolve);
|
||||
canvas.toBlob(resolve, "image/jpeg", 1.0);
|
||||
};
|
||||
video.onerror = reject;
|
||||
if (refresh) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче