cumulfimgs can now export in all know formats

This commit is contained in:
tth 2021-10-25 18:17:38 +02:00
parent 5845ab7962
commit 86df4ef602
2 changed files with 4 additions and 2 deletions

View File

@ -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 $@

View File

@ -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);