mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-09-28 20:43:54 +02:00
TransformColourProfile -> TransformColourProfileToSRGB
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user