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:
parent
a3d894a697
commit
a35b7a99c4
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user