Package: photon Version: 0.4.6-1.1 Severity: important Tags: patch
Following Command generates an exception which stops the program working: photon --sizelist=0,1600x1200,800x600 --thumbsize=320x240 -o /backup/amw/albums /tmp/NZ Traceback (most recent call last): File "/home/amw/bin/photon", line 2290, in <module> main() File "/home/amw/bin/photon", line 298, in main process_directory(path,"") File "/home/amw/bin/photon", line 440, in process_directory make_image_html(relativepath,directories_list, images_list) File "/home/amw/bin/photon", line 905, in make_image_html fill_image_html_exif_window(namespace, image) File "/home/amw/bin/photon", line 1252, in fill_image_html_exif_window exif_value = exif_resolv_ratio( imageinfo['exif'][exif_key] ) File "/home/amw/bin/photon", line 1231, in exif_resolv_ratio return float(m.group(1)) / float(m.group(2)) ZeroDivisionError: float division The m.group(2) is "0" - I don't know the image which does it or exactly why but I hacked the code to detect it and use the result 1.0 and it appears to work ok? --- /usr/bin/photon 2008-07-19 01:51:16.000000000 +1000 +++ /home/amw/bin/photon 2013-01-03 16:56:33.000000000 +1100 @@ -1227,6 +1227,9 @@ ratio = ratio_of_ifdtag m = re.search("^(\d+)/(\d+)$", ratio) if m: + if m.group(2) == "0": + print "m.group(2)=", m.group(2), "\n" + return 1.0 return float(m.group(1)) / float(m.group(2)) else: return float(ratio) -- System Information: Debian Release: 6.0.6 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages photon depends on: ii python 2.6.6-3+squeeze7 interactive high-level object-orie ii python-central 0.6.16+nmu1 register and build utility for Pyt ii python-imaging 1.1.7-2 Python Imaging Library Versions of packages photon recommends: ii dcraw 8.99-1+b1 decode raw digital camera images ii gimp 2.6.10-1+squeeze3 The GNU Image Manipulation Program photon suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org