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

Method GetIntDefault

vips/vips.go:464–470  ·  view source on GitHub ↗
(name string, def int)

Source from the content-addressed store, hash-verified

462}
463
464func (img *Image) GetIntDefault(name string, def int) (int, error) {
465 if C.vips_image_get_typeof(img.VipsImage, cachedCString(name)) == 0 {
466 return def, nil
467 }
468
469 return img.GetInt(name)
470}
471
472func (img *Image) GetIntSlice(name string) ([]int, error) {
473 var ptr unsafe.Pointer

Callers 3

PagesMethod · 0.95
ColourProfileImportedMethod · 0.95
transformAnimatedMethod · 0.80

Calls 2

GetIntMethod · 0.95
cachedCStringFunction · 0.85

Tested by

no test coverage detected