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
@ -329,7 +329,7 @@ export const resizeImageFile = async (
|
|||||||
}
|
}
|
||||||
|
|
||||||
return new File(
|
return new File(
|
||||||
[await reduce.toBlob(file, { max: opts.maxWidthOrHeight })],
|
[await reduce.toBlob(file, { max: opts.maxWidthOrHeight, alpha: true })],
|
||||||
file.name,
|
file.name,
|
||||||
{
|
{
|
||||||
type: opts.outputType || file.type,
|
type: opts.outputType || file.type,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user