From 86df4ef602724b60dd5b20f9dac86b778cdda102 Mon Sep 17 00:00:00 2001 From: tth Date: Mon, 25 Oct 2021 18:17:38 +0200 Subject: [PATCH] cumulfimgs can now export in all know formats --- tools/Makefile | 3 ++- tools/cumulfimgs.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/Makefile b/tools/Makefile index 6206a09..15c0db8 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -19,7 +19,8 @@ fimgstats: fimgstats.c $(DEPS) gcc $(COPT) $< ../libfloatimg.a -lm -o $@ cumulfimgs: cumulfimgs.c $(DEPS) - gcc $(COPT) $< ../libfloatimg.a -lm -o $@ + gcc $(COPT) $< ../libfloatimg.a -lcfitsio \ + -ltiff -lpnglite -lz -lm -o $@ mkfimg: mkfimg.c $(DEPS) gcc $(COPT) $< ../libfloatimg.a -lm -o $@ diff --git a/tools/cumulfimgs.c b/tools/cumulfimgs.c index 3a4c32d..a1b7a75 100644 --- a/tools/cumulfimgs.c +++ b/tools/cumulfimgs.c @@ -108,7 +108,8 @@ if (to_gray) { } } -foo = fimg_dump_to_file(&accu, output_file, 0); +// XXX foo = fimg_dump_to_file(&accu, output_file, 0); +foo = fimg_export_picture(&accu, output_file, 0); if (foo) { fprintf(stderr, "error %d while saving '%s'\n", foo, output_file); exit(1);