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

Method RemoveColourProfile

vips/vips.go:801–811  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

799}
800
801func (img *Image) RemoveColourProfile() error {
802 var tmp *C.VipsImage
803
804 if C.vips_icc_remove(img.VipsImage, &tmp) == 0 {
805 img.swapAndUnref(tmp)
806 } else {
807 slog.Warn("Can't remove ICC profile", "error", Error())
808 }
809
810 return nil
811}
812
813func (img *Image) LinearColourspace() error {
814 return img.Colorspace(C.VIPS_INTERPRETATION_scRGB)

Callers 2

colorspaceToResultMethod · 0.80

Calls 3

swapAndUnrefMethod · 0.95
WarnMethod · 0.80
ErrorFunction · 0.70

Tested by

no test coverage detected