MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / GetIntSliceDefault

Method GetIntSliceDefault

vips/vips.go:494–500  ·  view source on GitHub ↗
(name string, def []int)

Source from the content-addressed store, hash-verified

492}
493
494func (img *Image) GetIntSliceDefault(name string, def []int) ([]int, error) {
495 if C.vips_image_get_typeof(img.VipsImage, cachedCString(name)) == 0 {
496 return def, nil
497 }
498
499 return img.GetIntSlice(name)
500}
501
502func (img *Image) GetDouble(name string) (float64, error) {
503 var d C.double

Callers 1

transformAnimatedMethod · 0.80

Calls 2

GetIntSliceMethod · 0.95
cachedCStringFunction · 0.85

Tested by

no test coverage detected