<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Should anyone encounter this in the future, I corrected the exif information in the affected images (which was wrong anyway) using exiftool.</div><div><br></div><div>(helpful links: <a href="http://dimitar.me/change-the-date-and-time-or-any-other-exif-image-meta-data-of-pictures-with-ubuntu/">http://dimitar.me/change-the-date-and-time-or-any-other-exif-image-meta-data-of-pictures-with-ubuntu/</a> and <a href="https://fitzcarraldoblog.wordpress.com/2011/08/17/exiftool-comes-to-the-rescue-when-i-need-to-fix-the-date-and-time-in-a-batch-of-photo-files/">https://fitzcarraldoblog.wordpress.com/2011/08/17/exiftool-comes-to-the-rescue-when-i-need-to-fix-the-date-and-time-in-a-batch-of-photo-files/</a>)</div><div><br></div><div>It turned out that certain images taken by a certain camera a few years ago had a correct file creation time, but the <span style="font-family: Monaco;">Date/Time Original</span> fields were indeed set to all zeros.</div><div><br></div><div>I’m not a programmer, If I could, I’d like to help to include a check when scanning the images that if such exif information was found, the scanner would report them (on the running screen for instance, perhaps a summary at the end) and skip the failing images.</div><div><br></div>Br.<div><br></div><div>Dennis</div><div><br><div><div>Op 12 dec. 2014, om 16:32 heeft Dennis Ortsen <<a href="mailto:dortsen@gmail.com">dortsen@gmail.com</a>> het volgende geschreven:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Sadly I’ve run into an error, I’m not that much into python, perhaps someone has encountered this before and can pinpoint me?<div><br></div><div>I’m running an updated Ubuntu 14.04.1 and a git clone of PhotoFloat from this week. When running the scanner’s main.py, somewhere along the process an image is found with a different date/time format:</div><div><br></div><div><div style="margin: 0px; font-family: Monaco;">2014-12-11T23:11:48.670837   |  |--[thumbing]      IMG_3092.JPG -> 800px</div><div style="margin: 0px; font-family: Monaco;">2014-12-11T23:11:49.343290   |  |--[thumbing]      IMG_3092.JPG -> 1024px</div><div style="margin: 0px; font-family: Monaco;">2014-12-11T23:11:50.295564   |--[caching]       Liza</div><div style="margin: 0px; font-family: Monaco;">Traceback (most recent call last):</div><div style="margin: 0px; font-family: Monaco;">  File "./main.py", line 23, in <module></div><div style="margin: 0px; font-family: Monaco;">    main()</div><div style="margin: 0px; font-family: Monaco;">  File "./main.py", line 17, in main</div><div style="margin: 0px; font-family: Monaco;">    TreeWalker(sys.argv[1], sys.argv[2])</div><div style="margin: 0px; font-family: Monaco;">  File "/var/www/photofloat/scanner/TreeWalker.py", line 16, in __init__</div><div style="margin: 0px; font-family: Monaco;">    self.walk(self.album_path)</div><div style="margin: 0px; font-family: Monaco;">  File "/var/www/photofloat/scanner/TreeWalker.py", line 55, in walk</div><div style="margin: 0px; font-family: Monaco;">    album.add_album(self.walk(entry))</div><div style="margin: 0px; font-family: Monaco;">  File "/var/www/photofloat/scanner/TreeWalker.py", line 76, in walk</div><div style="margin: 0px; font-family: Monaco;">    album.cache(self.cache_path)</div><div style="margin: 0px; font-family: Monaco;">  File "/var/www/photofloat/scanner/PhotoAlbum.py", line 68, in cache</div><div style="margin: 0px; font-family: Monaco;">    self._sort()</div><div style="margin: 0px; font-family: Monaco;">  File "/var/www/photofloat/scanner/PhotoAlbum.py", line 51, in _sort</div><div style="margin: 0px; font-family: Monaco;">    self._photos.sort()</div><div style="margin: 0px; font-family: Monaco;">  File "/var/www/photofloat/scanner/PhotoAlbum.py", line 323, in __cmp__</div><div style="margin: 0px; font-family: Monaco;">    date_compare = cmp(self.date, other.date)</div><div style="margin: 0px; font-family: Monaco;">  File "/var/www/photofloat/scanner/PhotoAlbum.py", line 319, in date</div><div style="margin: 0px; font-family: Monaco;">    correct_date = datetime.strptime(correct_date, '%Y:%m:%d %H:%M:%S')</div><div style="margin: 0px; font-family: Monaco;">  File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime</div><div style="margin: 0px; font-family: Monaco;">    (data_string, format))</div><div style="margin: 0px; font-family: Monaco;">ValueError: time data '0000:00:00 00:00:00' does not match format '%Y:%m:%d %H:%M:%S'</div></div><div><br></div><div>How can I find out which file(s) the scanner is choking on? Or perhaps someone can tell me in which order the scanner processes file (alphabetically, order by oldest or first folder/file)?</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>For what it’s worth: I’ve added a second ip address to my ubuntu for ease of Nginx configuration and thus it’s not accessible from the Internet (I’ve port forwarded http and https on a different ip address).</div><div><br></div><div>Br.</div><div><br></div><div>Dennis</div><div><br></div><div><br></div><div><br><div><div>Op 8 dec. 2014, om 19:00 heeft Jason A. Donenfeld <<a href="mailto:Jason@zx2c4.com">Jason@zx2c4.com</a>> het volgende geschreven:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p dir="ltr">On Dec 1, 2014 10:14 PM, "John Griessen" <<a href="mailto:john@industromatic.com">john@industromatic.com</a>> wrote:<br>
><br>
> The creator of photofloat makes an email list response every 1.3 years.<br>
><br>
> There may be 13 users of photofloat worldwide.<br>
><br>
> The list runs on a server owned by the creator.<br>
><br>
> This comment may get me banned.</p><p dir="ltr">LOL!</p><p dir="ltr">Pretty grim. Fortunately I'm still a person, and I'll get back into the groove of maintaining things at some point. I don't want to follow the djb example of, "here's a public domain code dump. Good luck maintaining it!" But rather I'd prefer to do things responsibly. And, to stop making excuses for myself when I'm distant. In any case, I'm in Torres del Paine right now (when this message sends, I'll probably be closer to Punta Arenas), so no real computer, but I'll be back in ~2 weeks or so. Maybe at that point the whole mailing can go wild poking me to be a person again, and then I'll get the machine rolling.</p><p dir="ltr">Biggest priority for me is the unicode errors / python3ification. After that would probably be improving the documentation for folks. Then finally, merging people's work on html5video, rss, and other things.</p>
_______________________________________________<br>PhotoFloat mailing list<br><a href="mailto:PhotoFloat@lists.zx2c4.com">PhotoFloat@lists.zx2c4.com</a><br><a href="http://lists.zx2c4.com/mailman/listinfo/photofloat">http://lists.zx2c4.com/mailman/listinfo/photofloat</a><br></blockquote></div><br></div></div></blockquote></div><br></div></body></html>