fix: fixed image transparency by adding alpha option to preserve image alpha channel (#8895)

added alpha option to preserve image alpha channel
dependabot/npm_and_yarn/nanoid-3.3.8
Antonio Della Fortuna 2 months ago committed by GitHub
parent 8a1152ce36
commit 9b401f6ea3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save