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

Method RestoreColourProfile

vips/vips.go:750–758  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

748}
749
750func (img *Image) RestoreColourProfile() {
751 var tmp *C.VipsImage
752
753 if C.vips_icc_restore(img.VipsImage, &tmp) == 0 {
754 img.swapAndUnref(tmp)
755 } else {
756 slog.Warn("Can't restore ICC profile", "error", Error())
757 }
758}
759
760func (img *Image) ImportColourProfile() error {
761 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