help with saving pictures in export-html

Dirk Hohndel dirk at hohndel.org
Wed Oct 7 15:54:40 PDT 2015


Robert,

I noticed that export-html apparently can't find pictures anymore. OK,
that's an oversimplification.

Here's how this is used on our cloud server:
- a git hook triggers export-html whenever a user pushes data to the server
- export-html is run and gets passed the users' git tree and html dir
- it then exports what it finds in git into said html directory

So far so good. Of course the picture file names that are included in the
git file are useless as they refer the local file layout of the user's
machine, but thankfully we have the brilliant hashing infrastructure that
you have created. But somehow... this doesn't appear to work. Or oddly it
seems to have worked a few times (so I have SOME pictures in my export
folder), but in general it doesn't appear to work.

Here's how I have tested this. I deleted my local "hashes" and
"picturedata" files. I ran export-html against my local git tree that
contains around 20 pictures. No luck.

I played with the code for the past two hours. I tried to call
learnImages(), I tried to trace the code where we figure out the local
filenames. I just can't see the forest for the trees. Something isn't
working right.

I'd appreciate if you could take a look. Hopefully this will make a lot
more sense to you and will be an easy fix. Right now people using our
cloud storage don't get to see their pictures on the website and I find
that disappointing. Not catastrophically terrible, not a show stopper, but
if you have a moment... :-)

/D


More information about the subsurface mailing list