Browse Source

Use adaptive filter for full-color PNGs

DarthSim 2 years ago
parent
commit
fb330da045
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vips/vips.c

+ 1 - 1
vips/vips.c

@@ -647,7 +647,7 @@ vips_pngsave_go(VipsImage *in, void **buf, size_t *len, int interlace, int quant
   if (!quantize)
     return vips_pngsave_buffer(
       in, buf, len,
-      "filter", VIPS_FOREIGN_PNG_FILTER_NONE,
+      "filter", VIPS_FOREIGN_PNG_FILTER_ALL,
       "interlace", interlace,
       NULL
     );