()
| 758 | } |
| 759 | |
| 760 | func (img *Image) ImportColourProfile() error { |
| 761 | var tmp *C.VipsImage |
| 762 | |
| 763 | if C.vips_icc_import_go(img.VipsImage, &tmp) == 0 { |
| 764 | img.swapAndUnref(tmp) |
| 765 | } else { |
| 766 | slog.Warn("Can't import ICC profile", "error", Error()) |
| 767 | } |
| 768 | |
| 769 | return nil |
| 770 | } |
| 771 | |
| 772 | func (img *Image) ColourProfileImported() bool { |
| 773 | imported, err := img.GetIntDefault("imgproxy-icc-imported", 0) |
no test coverage detected