Releases: cshum/vipsgen
Releases · cshum/vipsgen
v1.2.1
v1.2.0
Optional Output Parameters Support
vipsgen v1.2.0 introduces optional output parameters for common argument types. See examples.
Smartcrop with Attention Coordinates
Operation: vips_smartcrop
Optional Outputs: AttentionX, AttentionY
The coordinates where the algorithm detected the most interesting content for cropping.
options := vips.DefaultSmartcropOptions()
err := img.Smartcrop(width, height, options)
// Access the attention coordinates
fmt.Printf("Attention Center: x=%d, y=%d\n", options.AttentionX, options.AttentionY)Mosaic with Transformation Parameters
Operation: vips_mosaic
Optional Outputs: Dx0, Dy0, Scale1, Angle1, Dx1, Dy1
The detected transformation parameters when combining two images.
options := vips.DefaultMosaicOptions()
err := img1.Mosaic(img2, direction, xref, yref, xsec, ysec, options)
// Access transformation parameters
fmt.Printf("Integer Offset: dx0=%d, dy0=%d\n", options.Dx0, options.Dy0)
fmt.Printf("Detected Scale: %.3f\n", options.Scale1)
fmt.Printf("Detected Rotation: %.3f degrees\n", options.Angle1)What's Changed
Full Changelog: v1.1.3...v1.2.0
v1.1.3
v1.1.2
v1.1.1
libvips 8.17.0
https://github.com/libvips/libvips/releases/tag/v8.17.0
What's Changed
Full Changelog: v1.1.0...v1.1.1
v1.1.0
v1.0.1
What's Changed
- fix: deterministic operations and enums sequence by @cshum in #43
- fix: composite fix and enable report leaks in test cases by @cshum in #39
- test: add cases for options passing, memory management, and type safety by @cshum in #44
- fix: clear error buffer on vips_interpolate_new fail by @cshum in #45
- fix: fix ref of custom operation rot_multi_page by @cshum in #46
Full Changelog: v0.9.1...v1.0.1