sharp: Vector file to PNG doesn't preserve transparent alpha channel
The output is an image on a white background. I’ve tried various combinations of embed() and background({a: 0}) to no effect.
let transform = (width, height, density, toFormat) => {
return sharp(null, {density: density})
.resize(width, height)
.max()
.withoutEnlargement()
.toFormat(toFormat);
};
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 21 (13 by maintainers)
v0.15.0 out now for all your libvips-compiled-with-poppler needs.