farbfeld

suckless image format with conversion tools
git clone git://git.suckless.org/farbfeld
Log | Files | Refs | README | LICENSE

commit 6c6d1a3d4979b4919e8354cd8e656cc0cea8c7c7
parent 5c618e138979f322cf4e77ac0168bf1aee3c913b
Author: FRIGN <dev@frign.de>
Date:   Tue, 29 Jul 2014 01:49:10 +0200

Fix conversion of grayscale-png's

Thanks to Robert Hülle for reporting this!

Diffstat:
Mpng2if.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/png2if.c b/png2if.c @@ -44,6 +44,7 @@ main(int argc, char *argv[]) } png_init_io(png_struct_p, stdin); png_set_add_alpha(png_struct_p, 255, PNG_FILLER_AFTER); + png_set_gray_to_rgb(png_struct_p); png_read_png(png_struct_p, png_info_p, PNG_TRANSFORM_STRIP_16 | PNG_TRANSFORM_PACKING | PNG_TRANSFORM_EXPAND , NULL); png_get_IHDR(png_struct_p, png_info_p, &width, &height, &depth,