nextDirectory(tiffobj) makes the next image file directory (IFD) in the file the current IFD. Tiff object methods operate on the current IFD. Use this method to navigate among IFDs in a TIFF file containing multiple images.
This method corresponds to the TIFFReadDirectory function in the LibTIFF C API. To use this method, you must be familiar with the TIFF specification and technical notes. View this documentation at LibTIFF - TIFF Library and Utilities.