mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 20:22:31 +02:00
Fix the way the dpr
processing option affects offsets and paddings
This commit is contained in:
@@ -174,7 +174,12 @@ func transformAnimated(ctx context.Context, img *vips.Image, po *options.Process
|
||||
}
|
||||
|
||||
if watermarkEnabled && imagedata.Watermark != nil {
|
||||
if err = applyWatermark(img, imagedata.Watermark, &po.Watermark, framesCount); err != nil {
|
||||
dprScale, derr := img.GetDoubleDefault("imgproxy-dpr-scale", 1.0)
|
||||
if derr != nil {
|
||||
dprScale = 1.0
|
||||
}
|
||||
|
||||
if err = applyWatermark(img, imagedata.Watermark, &po.Watermark, dprScale, framesCount); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user