mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
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
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:
parent
3e9442208f
commit
1fceb1822a
@ -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
|
||||
)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user