1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-24 08:12:38 +02:00

Convert image to RGB before watermarking

This commit is contained in:
DarthSim 2019-10-10 19:18:45 +06:00
parent a3d894a697
commit a35b7a99c4

View File

@ -248,6 +248,10 @@ func prepareWatermark(wm *vipsImage, wmData *imageData, opts *watermarkOptions,
}
func applyWatermark(img *vipsImage, wmData *imageData, opts *watermarkOptions, framesCount int) error {
if err := img.RgbColourspace(); err != nil {
return err
}
wm := new(vipsImage)
defer wm.Clear()