Browse Source

- improved help

tags/v0.1.2
Andreas Romeyke 2 years ago
parent
commit
6a433d00c0
1 changed files with 18 additions and 13 deletions
  1. +18
    -13
      src/fixit_tiff.c

+ 18
- 13
src/fixit_tiff.c View File

@@ -14,22 +14,27 @@

/** help function */
void help () {
printf ("fixit_tiff\n");
printf ("fixit_tiff, a tool to fix common problems in extended baseline TIFF files\n");
printf ("uses libtiff version %s\n", TIFFGetVersion());
printf ("call it with:\n");
printf ("\tfixit_tiff [-h|-c|-s|-b|-x <tag>|-p] -i <infile> [-o <outfile>]\n");
printf ("\ncall it with:\n");
printf ("\tfixit_tiff -h\n");
printf ("\tfixit_tiff [-q] -c -i <infile>\n");
printf ("\tfixit_tiff [-q] [-s] -i <infile> [-o <outfile>]\n");
printf ("\tfixit_tiff [-q] [-e|-b|-x <tag>|-p] -i <infile> [-o <outfile>]\n");
printf ("\nwhere <infile> is the possibly broken file\n");
printf ("and <outfile> is the name of the corrected file\n");
printf ("\t-c checks file only\n");
printf ("\t-s inplace file substitution (only -i needed, dangerous)\n");
printf ("\t-b clean up (eliminates tags to be baseline tiff conform)\n");
printf ("\t-q disables describing messages\n");
printf ("\t-t try to fix tagorder (dangerous)\n");
printf ("\t-x tag clean tiff from given tag\n");
printf ("\t-p try to repair ICC header profile, correct preferred CMM type (autocorrect misspelled entries or erase 'Lino' to zero)\n");
printf ("\t or to fix CMM version (replaces only the version-string)\n");
printf ("\t-e try to repair wrong tagtype\n");
printf ("\tHint: 'fixit_tiff -i <infile> -o <outfile>' repairs date only\n");
printf ("\nOptions in detail:\n");
printf ("\t-c ... checks file only (rudimentary, lists baseline tags, dumps libtiff errors. For deeper checks, please use 'checkit_tiff'\n");
printf ("\t-s ... inplace file substitution (only -i needed, dangerous, only works with datetime-fixes)\n");
printf ("\t-b ... clean up (eliminates tags to be baseline tiff conform)\n");
printf ("\t-q ... disables describing messages\n");
printf ("\t-t ... try to fix tagorder (dangerous)\n");
printf ("\t-x <tag> ... remove given tag\n");
printf ("\t-p ... try to repair ICC header profile, correct preferred CMM type (autocorrect misspelled entries or erase 'Lino' to zero)\n");
printf ("\t or to fix CMM version (replaces only the version-string)\n");
printf ("\t-e ... try to repair some wrong tagtypes\n");
printf ("\n");
printf ("Hint: 'fixit_tiff -i <infile> -o <outfile>' repairs broken datetimes only\n");
}




Loading…
Cancel
Save