comparison 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
comparison
equal deleted inserted replaced
2021:c8c698bb99b6 2022:eb6dafdd36dc
523 "PNG: Unsupported image format %d.\n", 523 "PNG: Unsupported image format %d.\n",
524 spec->format); 524 spec->format);
525 goto error; 525 goto error;
526 } 526 }
527 527
528 png_set_compression_level(png_ptr, spec->compression);
529
528 png_set_IHDR(png_ptr, info_ptr, 530 png_set_IHDR(png_ptr, info_ptr,
529 img->width * spec->scaleX, 531 img->width * spec->scaleX,
530 img->height * spec->scaleY, 532 img->height * spec->scaleY,
531 8, /* bits per component */ 533 8, /* bits per component */
532 fmt, 534 fmt,