When converting black and white images from TIFF to PDF (image embedded in page) or back, the image's colors may get inverted: Tif to PDF conversion Inverse problem https://blog.idrsolutions.com/2011/08/ccitt-encoding-in-pdf-files-black-and-white-facts/
So, given a binary TIFF file, I'd like to invert its colors, but without re-encoding or re-compressing the data. It is possible to do so by editing the metadata only and I'd like to know how.
Any open source tool, library or programming language is okay for me. From what I've gathered so far, there are multiple steps in the decoding pipeline that may achieve the desired result (add some flag, flip the color palette, etc.).
CodePudding user response:
You could try the 2 tools suggested here and change MINISBLACK
to its inverse and see what happens...
As you say in your comment, the following seems to do as you asked:
tiffset -s 262 0 YOURIMAGE.TIF