Browse Source

Fix pixelate check

DarthSim 4 năm trước cách đây
mục cha
commit
e46127a7a4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 	}