TransformColourProfile -> TransformColourProfileToSRGB

This commit is contained in:
DarthSim
2025-08-20 17:00:54 +03:00
parent e1764ad580
commit 83e64ff2d3
4 changed files with 6 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ func colorspaceToResult(pctx *pipelineContext, img *vips.Image, po *options.Proc
} else if !keepProfile {
// We don't import ICC profile and don't want to keep it,
// so we need to transform it to sRGB for maximum compatibility
if err := img.TransformColourProfile(); err != nil {
if err := img.TransformColourProfileToSRGB(); err != nil {
return err
}
}