mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 20:22:31 +02:00
Fix trimming of CMYK images
This commit is contained in:
@@ -11,6 +11,11 @@ func trim(pctx *pipelineContext, img *vips.Image, po *options.ProcessingOptions,
|
||||
return nil
|
||||
}
|
||||
|
||||
// We need to import color profile before trim
|
||||
if err := importColorProfile(pctx, img, po, imgdata); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := img.Trim(po.Trim.Threshold, po.Trim.Smart, po.Trim.Color, po.Trim.EqualHor, po.Trim.EqualVer); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user