Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Commit

Permalink
fix: Use image/jpeg as MIME type for canvas.toBlob (#844)
Browse files Browse the repository at this point in the history
Retargeted. See #801.

Closes #801, #838.
  • Loading branch information
mloenow authored and tbarlow12 committed Aug 19, 2019
1 parent 44f9e4b commit 6df00da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/htmlFileReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6df00da

Please sign in to comment.