Division by zero errors in Exif module

jdstahl

Joined: 2003-11-02
Posts: 1
Posted: Sat, 2005-03-05 03:17

When the Exif module (v 0.8.8) is enabled, I get the following errors at the top of some (but not all) individual image pages:

Warning: Division by zero in /old_usr/www/html/jon/gallery/modules/exif/lib/exifer/exif.inc on line 358

Warning: Division by zero in /old_usr/www/html/jon/gallery/modules/exif/classes/ExifHelper.class on line 204

It seems to choke if the "Saturation" field = 0.

Here's a photo that works: http://blogs.onenw.org/jon/gallery/v/procession/IMG_0899.jpg.html

and here's one that doesn't:
http://blogs.onenw.org/jon/gallery/v/Methow/IMG_1842.jpg.html

any ideas?

TIA, jon

----

Gallery URL (optional): http://blogs.onenw.org/jon/gallery
Gallery version: 2.0 beta 1
Webserver (with version): apache 1.33
Datatabase (with version): mysql 4.x
PHP version (eg 4.2.1): 4.3.1
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:
Web browser/version:
G1 version (for migration bugs):

 
volksport
volksport's picture

Joined: 2002-10-06
Posts: 239
Posted: Sat, 2005-03-05 10:46

It appears to be an oversight, thanks for pointing it out.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-03-05 15:47

jdstahl, please file a bug on sourceforge for this, thanks (unless you already fixed it volksport?)

 
volksport
volksport's picture

Joined: 2002-10-06
Posts: 239
Posted: Sat, 2005-03-05 21:34

No I didn't, I was simply thanking the kind man. But from his description it appeared to be a valid issue. :)

Jon: to reiterate, please file a bug report on sourceforge
http://www.sf.net/projects/gallery