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

Method GetDoubleDefault

vips/vips.go:511–517  ·  view source on GitHub ↗
(name string, def float64)

Source from the content-addressed store, hash-verified

509}
510
511func (img *Image) GetDoubleDefault(name string, def float64) (float64, error) {
512 if C.vips_image_get_typeof(img.VipsImage, cachedCString(name)) == 0 {
513 return def, nil
514 }
515
516 return img.GetDouble(name)
517}
518
519func (img *Image) GetBlob(name string) ([]byte, error) {
520 var (

Callers 1

transformAnimatedMethod · 0.80

Calls 2

GetDoubleMethod · 0.95
cachedCStringFunction · 0.85

Tested by

no test coverage detected