Member
Member
danielmc   2007-11-26, 10:19
#1

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

Member
Member
sbillard   2007-11-26, 19:18
#2

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.

Member
Member
jlang   2007-11-27, 10:30
#3

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?)

Member
Member
danielmc   2007-11-27, 20:21
#4

Thats great folks, thanks...I hacked it out on my build, just to stop the error, will pick it up on the next release...

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.