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

Method BackupColourProfile

vips/vips.go:740–748  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

738}
739
740func (img *Image) BackupColourProfile() {
741 var tmp *C.VipsImage
742
743 if C.vips_icc_backup(img.VipsImage, &tmp) == 0 {
744 img.swapAndUnref(tmp)
745 } else {
746 slog.Warn("Can't backup ICC profile", "error", Error())
747 }
748}
749
750func (img *Image) RestoreColourProfile() {
751 var tmp *C.VipsImage

Callers 1

Calls 3

swapAndUnrefMethod · 0.95
WarnMethod · 0.80
ErrorFunction · 0.70

Tested by

no test coverage detected