kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Resizer: set type explicitly
rodzic
78f9807b22
commit
5cfd8106dd
|
@ -68,7 +68,7 @@ const processImage = (img, { width, height, orientation, type = 'image/png', nam
|
|||
context.drawImage(img, 0, 0, width, height);
|
||||
|
||||
canvas.toBlob((blob) => {
|
||||
resolve(new File([blob], name));
|
||||
resolve(new File([blob], name, { type, lastModified: new Date().getTime() }));
|
||||
}, type);
|
||||
});
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue