You've already forked imgproxy
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user