lovell/sharp
Auf GitHub ansehenMultiply alpha channel (was: Imagemagick's dissolve option)
Open
#618 geöffnet am 2. Nov. 2016
enhancementhelp wanted
Repository-Metriken
- Stars
- (31.994 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 4T 19h) (18 gemergte PRs in 30 T)
Beschreibung
Hi @lovell, Does sharp support the option to dissolve a transparent image? I was looking for something similar to imagemagick's dissolve option. I took a look at the docs but could not find anything. What i wanna achieve is to overlay a watermark, which works well but i would also like to dissolve it by ~35%.
return sharp(watermark)
.resize(width)
.toBuffer()
.then((outputBuffer) => {
return stream.overlayWith(outputBuffer);
});
streamis the streamed base image andwatermarkis the watermark png file which i would like to dissolve.