Browse Source

- bugfix, typo TIFFRewriteDirectory()

tags/v0.1.2
Andreas Romeyke 1 year ago
parent
commit
25647dd835
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/cleanup_baseline.c

+ 1
- 1
src/cleanup_baseline.c View File

@@ -56,7 +56,7 @@ int cleanup_baseline(const char * filename ) {
if (FLAGGED == flag_be_verbose) printf("After correction\n-----------------\n");
if (FLAGGED == flag_be_verbose) TIFFPrintDirectory(tif, stdout, TIFFPRINT_NONE);
/* write data back, only if no flag_check_only is set */
int written = TIFFReWriteDirectory(tif); /* HINT: TIFFWriteDirectory is errorneous (because sometimes libtiff could extend IFD with missed tags automatically, use TIFFReWriteDirectory instead. This adds a new(!) IFD at the end of the TIFF file. */
int written = TIFFRewriteDirectory(tif); /* HINT: TIFFWriteDirectory is errorneous (because sometimes libtiff could extend IFD with missed tags automatically, use TIFFReWriteDirectory instead. This adds a new(!) IFD at the end of the TIFF file. */
if (1 != written) {
fprintf(stderr, "something is wrong, tiffdir could not be written to file '%s'\n", filename);
exit (FIXIT_TIFF_WRITE_ERROR);


Loading…
Cancel
Save