From 11082c0d084fb7131ddf40104497f2cf1faab3e0 Mon Sep 17 00:00:00 2001 From: tth Date: Tue, 17 May 2022 08:30:20 +0200 Subject: [PATCH] add multiformat output to fimgfx --- floatimg.h | 2 +- tools/Makefile | 3 ++- tools/fimgfx.c | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/floatimg.h b/floatimg.h index aa869638..a7739795 100644 --- a/floatimg.h +++ b/floatimg.h @@ -5,7 +5,7 @@ * https://git.tetalab.org/tTh/FloatImg */ -#define FIMG_VERSION (185) +#define FIMG_VERSION (186) #define RELEASE_NAME ("noname") /* * in memory descriptor diff --git a/tools/Makefile b/tools/Makefile index 126b8759..271484c5 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -33,7 +33,8 @@ fimgops: fimgops.c $(DEPS) gcc $(COPT) $< ../libfloatimg.a -o $@ fimgfx: fimgfx.c $(DEPS) - gcc $(COPT) $< ../libfloatimg.a -lm -o $@ + gcc $(COPT) $< ../libfloatimg.a \ + -ltiff -lpnglite -lcfitsio -lm -o $@ fimghalfsize: fimghalfsize.c $(DEPS) gcc $(COPT) $< ../libfloatimg.a -lm -o $@ diff --git a/tools/fimgfx.c b/tools/fimgfx.c index 6c2481e5..6226718e 100644 --- a/tools/fimgfx.c +++ b/tools/fimgfx.c @@ -262,8 +262,8 @@ switch (action) { } -// foo = fimg_export_picture(&dest, dstfname, 0); -foo = fimg_dump_to_file(&dest, dstfname, 0); +foo = fimg_export_picture(&dest, dstfname, 0); +// foo = fimg_dump_to_file(&dest, dstfname, 0); if (foo) { fprintf(stderr, "dumping datas to file '%s' give us a %d\n", dstfname, foo);