Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible strange repeat of EXIF record. #39

Open
GoogleCodeExporter opened this issue Mar 22, 2015 · 0 comments
Open

Possible strange repeat of EXIF record. #39

GoogleCodeExporter opened this issue Mar 22, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

    im = Photo('image.jpg')
    print 'ImageWidth: ', im.getexif('ImageWidth')

What is the expected output? What do you see instead?

Get an exception that "Tag ImageWidth occurs in multiple records!".
What actually happens is that in metainfofile.py
    def __getRecordAndTagNum__(self, tag, record = None):
cycles through the EXIF records looking for the tag.
For some reason, record 1 (tiff) and tag 6 (ifd1) both use
the TIFFIFD class, meaning ImageWidth is repeated.

The chances are I'm confused by the exif.py code in
    def getRecord(self, rec_num):
but it still seems strange.

I realize that I could just do a:
    im.getexif('ImageWidth', 'tiff')

What version of the product are you using? On what operating system?

alpha 2 on vista.


Original issue reported on code.google.com by [email protected] on 25 Jun 2008 at 4:33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant