mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: fixed image transparency by adding alpha option to preserve image alpha channel (#8895)
added alpha option to preserve image alpha channel
This commit is contained in:
parent
8a1152ce36
commit
9b401f6ea3
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ export const resizeImageFile = async (
|
|||
}
|
||||
|
||||
return new File(
|
||||
[await reduce.toBlob(file, { max: opts.maxWidthOrHeight })],
|
||||
[await reduce.toBlob(file, { max: opts.maxWidthOrHeight, alpha: true })],
|
||||
file.name,
|
||||
{
|
||||
type: opts.outputType || file.type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue