Registry / utility / h2non-bimg

h2non-bimg

JSON →
library1.1.9gogounverified

Package bimg provides a fast image processing library using libvips.

go get github.com/h2non/bimg
INSTALL
IMPORT
SIG · H2NON-BIMG
H
h2non-bimg
utilitygov1.1.9
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.

bimg
github.com/h2non/bimg

Minimal example showing how to resize an image using bimg.

package main import ( "fmt" "github.com/h2non/bimg" ) func main() { buffer, _ := bimg.Read("input.jpg") newImage, err := bimg.NewImage(buffer).Resize(800, 600) if err != nil { panic(err) } bimg.Write("output.jpg", newImage) fmt.Println("Image resized successfully") }
Debug
Known issues
gotchaRequires libvips to be installed on the system.
fix
Install libvips via your package manager (e.g., apt-get install libvips-dev).
affects: all
Upgrade
Version history
1.1.9latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
h2non-bimg — go get h2non-bimg · libregistry