This commit is contained in:
tTh 2024-05-01 12:30:53 +02:00
parent bb2b3b72de
commit 8c4b9a6aa0
1 changed files with 4 additions and 3 deletions

View File

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