mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
image service: fix cropping + crop example (#170)
This commit is contained in:
@@ -167,7 +167,7 @@ func (e *Image) Resize(ctx context.Context, req *img.ResizeRequest, rsp *img.Res
|
||||
case "bottom right":
|
||||
anchor = imaging.BottomRight
|
||||
}
|
||||
resultImage = imaging.CropAnchor(resultImage, int(req.Width), int(req.Height),
|
||||
resultImage = imaging.CropAnchor(resultImage, int(req.CropOptions.Width), int(req.CropOptions.Height),
|
||||
anchor)
|
||||
}
|
||||
buf := new(bytes.Buffer)
|
||||
|
||||
Reference in New Issue
Block a user