AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2020.02.10 23:23 "[Tiff] recommended way to support a different compression", by Kris Fedorenko
2020.02.11 17:00 "Re: [Tiff] recommended way to support a different compression", by Leonard Rosenthol
2020.02.11 17:37 "Re: [Tiff] recommended way to support a different compression", by Kris Fedorenko
2020.02.11 17:43 "Re: [Tiff] recommended way to support a different compression", by Bob Friesenhahn
2020.02.12 18:00 "Re: [Tiff] recommended way to support a different compression", by Leonard Rosenthol
2020.02.13 00:05 "Re: [Tiff] recommended way to support a different compression", by Bob Friesenhahn
2020.02.20 17:39 "Re: [Tiff] recommended way to support a different compression", by Kemp Watson
2020.02.12 03:04 "Re: [Tiff] recommended way to support a different compression", by Edward Lam
2020.02.13 18:27 "Re: [Tiff] recommended way to support a different compression", by Kris Fedorenko
2020.02.13 22:25 "Re: [Tiff] recommended way to support a different compression", by Kris Fedorenko

2020.02.10 23:23 "[Tiff] recommended way to support a different compression", by Kris Fedorenko

Hello,

I am interested in adding support for a different compression scheme not currently supported by libtiff. As far as I could tell there are two possible ways to do this:

  1. Modifying libtiff to add *builtin* support for a new compression algorithm: http://www.simplesystems.org/libtiff/internals.html#AddingCODECS
  2. Using TIFFRegisterCODEC routine to register a codec during runtime to augment set of codecs available for an application: http://www.simplesystems.org/libtiff/man/TIFFcodec.3tiff.html

Is one method preferred over the other? The first method seems to be a bit better documented. But it looks like for *both* methods you would need to create a codec file that can be modeled after existing ones like tif_dumpmode.c (defining specific functions like TIFFInitMethod). Is this understanding accurate? Are there any known pitfalls for either of the methods, or any more documentation/examples available online? Anything else that would be important to know about them?

I would greatly appreciate your thoughts on this matter!

Thanks,

Kris