Bob Friesenhahn - 2023-07-01

Using AutoOrientImage() is too expensive for the purpose of getting final image dimensions (it does all of the work!), and it assumes that the image pixels were read. But the default for 'identify' is to set 'ping' to True (passed as ImageInfo 'ping') so that the reader will skip reading image pixels if at all possible. This should result in an error in AutoOrientImage().

It seems that an optimized substitute for AutoOrientImage() (which updates rows/columns, and orientation) is needed. This would be used when the default ping (or -ping) but not +ping or -verbose is used. When +ping or -verbose are used, then ping mode is disabled and the whole image is read.