Registry / utility / nfnt-resize

nfnt-resize

JSON →
library0.0.0-20180221191011-83c6a9932646gogounverified

Package resize implements various image resizing methods.

go get github.com/nfnt/resize
INSTALL
IMPORT
SIG · NFNT-RESIZE
N
nfnt-resize
utilitygov0.0.0-20180221191011-83c6a9932646
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

resize
✓ github.com/nfnt/resize

Resize an image to width 100 pixels.

package main import ( "image/jpeg" "os" "github.com/nfnt/resize" ) func main() { file, _ := os.Open("input.jpg") defer file.Close() img, _, _ := image.Decode(file) newImg := resize.Resize(100, 0, img, resize.Lanczos3) out, _ := os.Create("output.jpg") defer out.Close() jpeg.Encode(out, newImg, nil) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20180221191011-83c6a9932646latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
nfnt-resize — go get nfnt-resize · libregistry