diff tools/libgfx.c @ 2022:eb6dafdd36dc

Add option -C for controlling output file compression (PNG and IFF for now) in gfxconv.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 25 Oct 2018 19:07:00 +0300
parents 57a2527ff63d
children 362fb8295f0c
line wrap: on
line diff
--- a/tools/libgfx.c	Thu Oct 25 18:55:38 2018 +0300
+++ b/tools/libgfx.c	Thu Oct 25 19:07:00 2018 +0300
@@ -525,6 +525,8 @@
             goto error;
     }
 
+    png_set_compression_level(png_ptr, spec->compression);
+
     png_set_IHDR(png_ptr, info_ptr,
         img->width * spec->scaleX,
         img->height * spec->scaleY,