You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 25 Jun 2008 at 4:33The text was updated successfully, but these errors were encountered: