Pārlūkot izejas kodu

Fix pixelate check

DarthSim 4 gadi atpakaļ
vecāks
revīzija
e46127a7a4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      processing/apply_filters.go

+ 1 - 1
processing/apply_filters.go

@@ -8,7 +8,7 @@ import (
 )
 
 func applyFilters(pctx *pipelineContext, img *vips.Image, po *options.ProcessingOptions, imgdata *imagedata.ImageData) error {
-	if po.Blur == 0 && po.Sharpen == 0 && po.Pixelate < 1 {
+	if po.Blur == 0 && po.Sharpen == 0 && po.Pixelate <= 1 {
 		return nil
 	}