From d0b6d52bc46a054ecff777f9ed226faca48c0551 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 9 Jul 2013 21:32:51 +0200 Subject: use best compression level --- cqrlogo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cqrlogo.c b/cqrlogo.c index 3b243c5..a9a4a5e 100644 --- a/cqrlogo.c +++ b/cqrlogo.c @@ -12,6 +12,7 @@ #include #include +#include #include #include "config.h" @@ -42,6 +43,8 @@ int generate_png (struct bitmap_t *bitmap, char *http_referer) { png_set_IHDR (png_ptr, info_ptr, bitmap->width, bitmap->height, depth, PNG_COLOR_TYPE_GRAY, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT); + png_set_compression_level(png_ptr, Z_BEST_COMPRESSION); + #ifdef PNG_TEXT_SUPPORTED png_text text[3]; -- cgit v1.2.3-70-g09d2