MCPcopy Index your code
hub / github.com/TruthHun/BookStack / ImageResizeSaveFile

Function ImageResizeSaveFile

graphics/copy.go:43–47  ·  view source on GitHub ↗
(src image.Image, width, height int, p string)

Source from the content-addressed store, hash-verified

41 return resize.Resize(uint(w), uint(h), src, resize.Lanczos3)
42}
43func ImageResizeSaveFile(src image.Image, width, height int, p string) error {
44 dst := resize.Resize(uint(width), uint(height), src, resize.Lanczos3)
45
46 return SaveImage(p, dst)
47}

Callers 2

UploadMethod · 0.92
UploadCoverMethod · 0.92

Calls 1

SaveImageFunction · 0.85

Tested by

no test coverage detected