Browse Source

Turn off compression in realtime decoded images

tags/v1.8.0
Xerbo 4 years ago
parent
commit
69a43e8237
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      pngio.c

+ 3
- 0
pngio.c View File

@@ -388,6 +388,9 @@ int initWriter(options_t *opts, image_t *img, int width, int height, char *desc,
png_init_io(rt_png_ptr, rt_pngfile);
png_write_info(rt_png_ptr, rt_info_ptr);

// Turn off compression
png_set_compression_level(rt_png_ptr, 0);

return 1;
}



Loading…
Cancel
Save