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

Method ExportColourProfile

vips/vips.go:777–787  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

775}
776
777func (img *Image) ExportColourProfile() error {
778 var tmp *C.VipsImage
779
780 if C.vips_icc_export_go(img.VipsImage, &tmp) == 0 {
781 img.swapAndUnref(tmp)
782 } else {
783 slog.Warn("Can't export ICC profile", "error", Error())
784 }
785
786 return nil
787}
788
789func (img *Image) TransformColourProfileToStandard() error {
790 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