-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a script to download photos #5
Comments
For information only, at the moment, we are doing
From within the OZtree dir, but that only works if you have ssh access to the server |
With 5b723f4 we should now be maintaining the modification timestamps on image thumbnails. That means we should be able to use If-Modified-Since requests over http to get only updated images |
NB: with the new arrangement of images, we need a different rsync command. Something like:
Which still, of course, needs the ssh password |
Given that we can now package a docker image with the thumbnails included, I think we can close this |
For museums etc we need a way to populate the pics dir so that the OneZoom instance is completely stand-alone, and will work without an internet connection (NB: this will still not allow the display of external pages such as wikipedia, though).
We cannot do this over ssh/rsync. Instead, we probably want a python script that looks up the image IDs from the database table and downloads them over http if they are missing from the pics directory (or if their updated time in the eol_updated table is more recent than the created time on an existing picture)
The text was updated successfully, but these errors were encountered: