Images by hashes, second attempt

Robert Helling helling at lmu.de
Thu Feb 26 05:55:33 PST 2015


Hi,

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Add-hashes-to-images.txt
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150226/45752c73/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-UI-to-learn-hashes-of-local-image-files.txt
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150226/45752c73/attachment-0001.txt>
-------------- next part --------------

this is my second attempt at providing patches to add hash information to images (with hopefully much clearer API and variable names, thanks for the suggestions!). As a byproduct, I learned about the use of the -p option for git add.

These patches should help with images for dive logs maintained on different computers (with different paths for image directories etc).

I imagine the workflow as follows:

you add images to your dives as before. But now hashes are computed for each displayed image (so to work with an old log, you should go through the log and display all images and then save the file again). Then you can transfer all you image files to the other computer (with scp, a flash drive or some cloud service like dropbox or possibly git). You don’t have to maintain the same directory structure as on the original computer. Then in the file menu you choose „Hash images“ and select a directory that contains (possibly in subdirectories) your image files. After a little while, subsurface will have learned the locations and hashes of all those image files and will display the images based on hashes also on the second computer.

Best
Robert

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150226/45752c73/attachment.sig>


More information about the subsurface mailing list