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
exifread reaturn empty tags object #35
Comments
I get the same, zero tags returned, no error thrown. Testing on a Windows machine before deploying on Synology box. Python 3.3.5, exifread 1.4.2. |
Likewise. "No EXIF information found" when it is in there, according to IrfanView. http://nevcal.com/xB/20050719-182532gl_c.jpg is an example image on which the failure occurs. Version 1.0.10 of EXIF.py, does work better, in that it attempts to find something, but fails to decode it to ASCII... turning on debug here is the traceback I get from version 1.0.10, although that is, admittedly, a version I ported to Python 3, and submitted the patches for Python 3 support, which seem to have been integrated... maybe I missed something, but that version at least found the EXIF data in the file, whereas this version doesn't. debug: ResolutionUnit: (0x0128) Short=Pixels/Inch @ 32646 |
P.S. I was using Windows 7, Python 3.3.1, EXIF 1.4.2 and EXIF 1.0.10. |
This simple script works with Python2 but returns an empty dictionary for Python3.41: #!python3 |
Same for me on Python 3.3.3 on Mac OS X with exifread 1.4.2. Images clearly have EXIF data but exifread is returning nothing. |
The exifread version I have is 1.4.2 as well, and is not pyhon3 ready. I guess I should try to get a development version to see what happens, but if python3 support was included, it would be great to release a new version. |
Python 2.6, exifread 1.4.2 Image has EXIF data and I can get it using pillow, but exifread returns nothing. |
Please try with latest development version, I was able to extract info from the sample image provided: http://nevcal.com/xB/20050719-182532gl_c.jpg If you are still having errors, please upload or link to failing image. Thank you. |
👍 Works for me. Thanks! |
OK cool :-) |
I tested it out and it doesn't work with the image I got from an encrypted zip, but it works fine with normal images. I guess I just have to not use encrypted files somehow... Thanks though! |
Can you upload a failing image for testing? Even if the info is unreadable it shouldn't fail... Thanks! |
It doesn't look like that image has any valid Exif tags. It has a 'JFIF' marker tag, but that's all I could find. It does however have XMP tags, which some metadata readers will interpret and display as if they were Exif tags. I am currently working on adding (very) basic XMP info, just an XML dump initially. I'd like to have this for the 2.0 release. |
Ah, I see. So then seeing them come up using other libraries was because they were pulling the XMP info and reading it as if they were EXIF? Ok then. I'd definitely like to see that then in an upcoming release (hopefully with python 3.4 support?). Thanks! |
Yes, that's right. Dumping the XMP info in raw XML isn't too complicated, if a bit of chore as in most case it could be almost anywhere in the file. Processing the tags from the retrieved XML though, that looks like quite a pain. In any case, the latest Git version is already passing all python 3.4 tests. Try it out! |
Ok then. Thank you for your help! 👍 |
As a dumb user, here is a hint for other dumb users... UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 668: character maps to This is because I passed the file object after doing - f = open(join(dirName,fname)) Change this to - f = open(join(dirName,fname),'rb') and there is no decode performed !!!! - works for me now... |
Weird - open the file (as above), then 👎 |
On 4/22/2015 7:15 AM, irdroid3 wrote:
That's because it isn't sorted, and Python hashes are randomized each Probably would be a reasonable idea for exifread to sort the output, |
There is a branch somewhat in progress that would arrange the output as a multidimensional list, for sorting and easier access. But this would break backwards compatibility, so would need to be made an option. |
Hi,
I tried your ExifRead on my Synology on two different images, that both contain tags if read with exiftool.
What details can I provide you?
Linux Synology_NAS 3.2.40 #3810 SMP Wed Nov 6 05:13:41 CST 2013 armv7l GNU/Linux synology_armadaxp_ds214+
Python 3.3.2 (default, Dec 23 2013, 16:12:02)
[GCC 4.6.4] on linux
EXIF.py Ver 1.4.2
BR
Nippey
The text was updated successfully, but these errors were encountered: