1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-11-25 22:41:43 +02:00

Fix the way the dpr processing option affects offsets and paddings

This commit is contained in:
DarthSim
2023-04-16 20:20:44 +03:00
parent ee0cb9feda
commit 2c28252966
14 changed files with 101 additions and 44 deletions

View File

@@ -29,6 +29,8 @@ type pipelineContext struct {
wscale float64
hscale float64
dprScale float64
iccImported bool
}
@@ -59,5 +61,7 @@ func (p pipeline) Run(ctx context.Context, img *vips.Image, po *options.Processi
}
}
img.SetDouble("imgproxy-dpr-scale", pctx.dprScale)
return nil
}