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

Method TransformColourProfileToStandard

vips/vips.go:789–799  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

787}
788
789func (img *Image) TransformColourProfileToStandard() error {
790 var tmp *C.VipsImage
791
792 if C.vips_icc_transform_standard(img.VipsImage, &tmp) == 0 {
793 img.swapAndUnref(tmp)
794 } else {
795 slog.Warn("Can't transform ICC profile", "error", Error())
796 }
797
798 return nil
799}
800
801func (img *Image) RemoveColourProfile() error {
802 var tmp *C.VipsImage

Callers 1

colorspaceToResultMethod · 0.80

Calls 3

swapAndUnrefMethod · 0.95
WarnMethod · 0.80
ErrorFunction · 0.70

Tested by

no test coverage detected