Changed the file type to save for Cropper (#7738)
Some checks are pending
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions

This commit is contained in:
Alexander Platov 2025-01-21 03:34:29 +03:00 committed by GitHub
parent 3e9442208f
commit 1fceb1822a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,7 +37,7 @@
ctx.drawImage(bitmap, 0, 0)
imgRef.src = canvas.toDataURL('image/jpeg', 1.0)
imgRef.src = canvas.toDataURL('image/png', 1.0)
imgRef.width = bitmap.width
imgRef.height = bitmap.height
@ -80,7 +80,7 @@
(blob) => {
resolve(blob)
},
'image/jpeg',
'image/png',
0.95
)
})