Explorar el Código

Fix pixelate check

DarthSim hace 4 años
padre
commit
e46127a7a4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 	}