This commit is contained in:
tTh 2024-05-01 12:30:53 +02:00
parent bb2b3b72de
commit 8c4b9a6aa0

View File

@ -402,17 +402,18 @@ foo = format_from_extension(outfile);
switch (foo) { switch (foo) {
case FILE_TYPE_FIMG: case FILE_TYPE_FIMG:
if (add_metadata) { if (add_metadata) {
fimg_default_metadata(&metadata, 51); fimg_default_metadata(&metadata, 0x51);
/* copy some values to mdstruct */ /* copy some values to mdstruct */
metadata.fval = to_save->fval; metadata.fval = to_save->fval;
metadata.count = to_save->count; metadata.count = to_save->count;
// fprintf(stderr, "-> save '%s' with metadata\n", fprintf(stderr, "-> save '%s' with metadata\n",
// outfile); outfile);
foo = fimg_dumpmd_to_file(to_save, outfile, \ foo = fimg_dumpmd_to_file(to_save, outfile, \
&metadata, 0); &metadata, 0);
} }
else { else {
foo = fimg_dump_to_file(to_save, outfile, 0); foo = fimg_dump_to_file(to_save, outfile, 0);
fprintf(stderr, "%s no dump of metadata ?\n", outfile);
} }
break; break;
case FILE_TYPE_PNM: case FILE_TYPE_PNM: