Fix image contentType when transcoding
This commit is contained in:
parent
b7e5efe0a3
commit
e7a2365905
4 changed files with 78 additions and 194 deletions
|
@ -112,9 +112,6 @@ export async function scaleImageToLevel(
|
|||
throw new Error('image not a canvas');
|
||||
}
|
||||
({ image } = data);
|
||||
if (!(image instanceof HTMLCanvasElement)) {
|
||||
throw new Error('image not a canvas');
|
||||
}
|
||||
} catch (err) {
|
||||
const error = new Error('scaleImageToLevel: Failed to process image');
|
||||
error.originalError = err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue