MCPcopy Create free account
hub / github.com/TruthHun/BookStack / ImageResize

Function ImageResize

graphics/copy.go:40–42  ·  view source on GitHub ↗
(src image.Image, w, h int)

Source from the content-addressed store, hash-verified

38}
39
40func ImageResize(src image.Image, w, h int) image.Image {
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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected