cachapa/RemoteGallery — pull request #9 by mjholgate (2012-02-26 20:14:14+00:00)
Title: WIP: a few changes for RemoteGallery

RemoteGallery is excellent - just what I was looking for!

I thought I'd have a go at hacking a bit on it, and I've a got a few changes which might be of interest (probably not quite ready to pull just yet, but almost there).

1) the main change uses 'jhead' on the server to extract the JPEG thumbnail from image files before fetching the 'full quality' version. I was finding that large directories would take a long time to populate the list (imagemagick was taking a long time to run). This change speeds up population of the list significantly for slow servers on fast network connections (at the expense of more fetches in total). Perhaps this should be an option, rather than always on? We fallback to the generated thumbnail if there is no embedded thumbnail.

2) a fix a bug where we never fetch images on the ImageSlider view if we didn't
start fetching them on the RemoteBrowser activity.

3) prevent infinite looping if a fetch fails.

Let me know if these changes are useful for you!