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

Method GuessInterpretation

vips/vips.go:725–727  ·  view source on GitHub ↗

GuessInterpretation returns the guessed colorspace interpretation of the image.

()

Source from the content-addressed store, hash-verified

723
724// GuessInterpretation returns the guessed colorspace interpretation of the image.
725func (img *Image) GuessInterpretation() Interpretation {
726 return Interpretation(C.vips_image_guess_interpretation(img.VipsImage))
727}
728
729func (img *Image) IsRGB() bool {
730 format := C.vips_image_guess_interpretation(img.VipsImage)

Callers 2

guessTargetColorspaceFunction · 0.80
shouldImportICCFunction · 0.80

Calls 1

InterpretationTypeAlias · 0.85

Tested by

no test coverage detected