Error in EXIF.php

I'm getting the following error on my ZenPhoto Deployment:
"Warning: Division by zero in /home/.serius/danmc/pictures.daniel.mcpherson.name/zp-core/exif/exif.php on line 993"

It appears twice when browsing through individual pictures, just near the "Image Info" link, for example see here:
http://pictures.daniel.mcpherson.name/Favourites/Favourite-00014.jpg.php
Although it does seem to appear sometimes and not others.

Then it also appears as a whole stream of errors when I take the option to "Refresh Image Metadata".

Any help appreciated.
Daniel

Comments

  • The image width and height in your EXIF data for this picture are zero. This is causing the devide by zero when the EXIF function is trying to compute a 35mm focal length.

    We should protect against this. We will have a fix in a nightly build soon.
  • Perhaps when the EXIF data doesn't make sense the width and height should be taken directly from the image data? (Or more generally, maybe the EXIF size data should be checked against the image on upload or registration of the image in the database?)
  • Thats great folks, thanks...I hacked it out on my build, just to stop the error, will pick it up on the next release...
Sign In or Register to comment.