[PhotoFloat] Spring cleaning (video, preloading, threading, updated JS-libraries, etc)

Joachim Tingvold joachim at tingvold.com
Thu Jun 4 20:36:11 CEST 2015


On 4 Jun 2015, at 15:46, Tom Talpey wrote:
> Looks like the scanner can't be interrupted with ^C with these 
> patches.
> The first interrupt throws an exception and scanning stops, but the
> script doesn't exit. Subsequent interrupts throw another, but again, 
> no
> exit.

Yes, that was a side effect when doing threaded thumbing. I never really 
bothered to look into it since I never use ^C (-:

> Otherwise, it's looking sweet! The 1600px thumbing and video 
> conversion
> take a lot of time on my poor little Atom server, but that's easily
> solved (g).

Yeah. The main reason for adding 1600px was that 1024px became somewhat 
grainy on most computers, and the extra bandwidth isn't really an issue 
nowadays (FTTH, 4G/LTE, etc). 800px was removed since it became somewhat 
obsolete between 640px and 1024px. Video was bumped from 800k to 4M for 
the same reason (grainy), and ~400MB of 1080P raw footage becomes around 
~20MB -- which is an acceptable size imho.

The thumbsize, along with some few other things (like video quality, 
multithreading, etc), should probably be put into a separate 
configuration file (or at least /one/ central place in the code).

> Any chance you might look into implementing a file structure on the
> cache? The single-directory approach is my main scalability issue with
> the code. With (say) 20K photos, the directory ends up with over 120K
> long-name entries, which causes quite a bit of processing delay just
> for browsing. Would be soooo much nicer if the album tree structure
> were used in the cache as well...

This is on the top of my "things I'll fix whenever I have the mood to do 
it"-list.

I also want to look into dedupe -- I currently have two galleries; one 
primary that everyone can see, mostly consisting of event/time-limited 
events (i.e. different albums), and one secondary, containing /all/ of 
my photos (sorted into <category> / <year> / <month> / <day>) that is 
password-protected (BasicAuth) so that I can view all of my photos (even 
if they're not part of an album, which is practical f.ex. for mobile 
photos). The cache-folder for my primary gallery is like ~10G and around 
~20G for the secondary. Since all pictures are part of the ~20G, I 
shouldn't really need to use those ~10G for the primary gallery.

-- 
Joachim


More information about the PhotoFloat mailing list