|
func prepareWatermark(wm *vips.Image, wmData *imagedata.ImageData, opts *options.WatermarkOptions, imgWidth, imgHeight int, offsetScale float64, framesCount int) error {
|
|
func prepareWatermark(wm *vips.Image, wmData *imagedata.ImageData, opts *options.WatermarkOptions, imgWidth, imgHeight int, offsetScale float64, framesCount int) error {
|
|
@@ -30,6 +31,8 @@ func prepareWatermark(wm *vips.Image, wmData *imagedata.ImageData, opts *options
|
|
po.Width = imath.Max(imath.ScaleToEven(imgWidth, opts.Scale), 1)
|
|
po.Width = imath.Max(imath.ScaleToEven(imgWidth, opts.Scale), 1)
|
|
@@ -77,6 +80,8 @@ func prepareWatermark(wm *vips.Image, wmData *imagedata.ImageData, opts *options
|