1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-11-29 23:07:40 +02:00

Refactor colorspace code

This commit is contained in:
DarthSim
2019-06-10 20:15:49 +06:00
parent e5e3736d29
commit a08a5d41d9
2 changed files with 10 additions and 15 deletions

View File

@@ -300,7 +300,7 @@ func transformImage(ctx context.Context, img *vipsImage, data []byte, po *proces
checkTimeout(ctx)
if convertToLinear {
if err = img.FixColourspace(); err != nil {
if err = img.RgbColourspace(); err != nil {
return err
}
} else {
@@ -347,7 +347,7 @@ func transformImage(ctx context.Context, img *vipsImage, data []byte, po *proces
}
}
return img.FixColourspace()
return img.RgbColourspace()
}
func transformAnimated(ctx context.Context, img *vipsImage, data []byte, po *processingOptions, imgtype imageType) error {