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

Method ImportColourProfile

vips/vips.go:760–770  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

758}
759
760func (img *Image) ImportColourProfile() error {
761 var tmp *C.VipsImage
762
763 if C.vips_icc_import_go(img.VipsImage, &tmp) == 0 {
764 img.swapAndUnref(tmp)
765 } else {
766 slog.Warn("Can't import ICC profile", "error", Error())
767 }
768
769 return nil
770}
771
772func (img *Image) ColourProfileImported() bool {
773 imported, err := img.GetIntDefault("imgproxy-icc-imported", 0)

Callers 2

scaleMethod · 0.80

Calls 3

swapAndUnrefMethod · 0.95
WarnMethod · 0.80
ErrorFunction · 0.70

Tested by

no test coverage detected