scikits-image/scikits-image — pull request #118 by zachrahan (2012-02-02 03:54:44+00:00)
Title: ENH: Add metadata reading functions

Now there are paired `read()` and `read_metadata()` functions (as well as multipage equivalents); `read_metadata()` returns ALL of the image metadata as a dict. Non-string tags are handled properly.

This seemed to be the simplest complete interface for metadata that wasn't hacky feeling (which my previous attempts were). Also, this required a small refactoring of file IO to provide a saner interface and avoid code duplication.

Since it's a big-ish change, if someone would check this out for me that would be appreciated. Just try calling `read_metadata()` on some random JPEG you have...