add multiformat output to fimgfx

This commit is contained in:
tth 2022-05-17 08:30:20 +02:00
parent 615321eca8
commit 11082c0d08
3 changed files with 5 additions and 4 deletions

View File

@ -5,7 +5,7 @@
* https://git.tetalab.org/tTh/FloatImg * https://git.tetalab.org/tTh/FloatImg
*/ */
#define FIMG_VERSION (185) #define FIMG_VERSION (186)
#define RELEASE_NAME ("noname") #define RELEASE_NAME ("noname")
/* /*
* in memory descriptor * in memory descriptor

View File

@ -33,7 +33,8 @@ fimgops: fimgops.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -o $@ gcc $(COPT) $< ../libfloatimg.a -o $@
fimgfx: fimgfx.c $(DEPS) fimgfx: fimgfx.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -lm -o $@ gcc $(COPT) $< ../libfloatimg.a \
-ltiff -lpnglite -lcfitsio -lm -o $@
fimghalfsize: fimghalfsize.c $(DEPS) fimghalfsize: fimghalfsize.c $(DEPS)
gcc $(COPT) $< ../libfloatimg.a -lm -o $@ gcc $(COPT) $< ../libfloatimg.a -lm -o $@

View File

@ -262,8 +262,8 @@ switch (action) {
} }
// foo = fimg_export_picture(&dest, dstfname, 0); foo = fimg_export_picture(&dest, dstfname, 0);
foo = fimg_dump_to_file(&dest, dstfname, 0); // foo = fimg_dump_to_file(&dest, dstfname, 0);
if (foo) { if (foo) {
fprintf(stderr, "dumping datas to file '%s' give us a %d\n", fprintf(stderr, "dumping datas to file '%s' give us a %d\n",
dstfname, foo); dstfname, foo);