2020.12.11 15:22 "[Tiff] SIGSEGV within TIFFGetField()", by OnlineCop

2020.12.12 09:57 "Re: [Tiff] SIGSEGV within TIFFGetField()", by Roger Leigh

One thing which has frustrated me with custom tags is that (AFAICT) you can only register a custom tag on an open TIFF handle, which means you still get a bunch of warnings about unknown tags when you open the file and it reads the first IFD, before you have a chance to do the registration. Anyone know if there’s a way around that?

Sure, you register your own warning handler and ignore those warnings:

Thanks for the suggestion, but it seems like this will suppress *all* warnings unless I do additional (fragile) filtering on top of that. I don’t want to hide other legitimate warnings. I’d really prefer to avoid the warnings in the first place by being able to register the custom tags globally so they are always available within the application.

Regards,

Roger