Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To share a set of pictures with other QGIS users, it may be easier to access the images on a web server.
In our case, we use sharepoint synced to local disk. That means I can access images locally on c:/users/morten/onedrive/company/projectname/photos, whereas my colleague dave would see the same directory as c:/users/dave/onedrive/company/projectname/photos, but we can both access them on https://companyshared,sharepoint.com/sites/department/Shared documents/projectname/photos
So, to make it possible to create a photos layer that is useable for both of us, I have added two fields on the main form:
Relative root, that is what I want to get rid of from the initial path, i.e. in my case "c:/users/morten/onedrive/company/"
Web root, that is what should be added to get the correct url, i.e. in my case https://companyshared,sharepoint.com/sites/department/Shared documents/
The url will be stored in a new field 'Link' in the data file.
If Relative root is empty, the input folder will be used, if Web root is empty, Link will be set as the total path of the image.
For some strange reason, the image name is (still) not clickable on the first loading of the photo viewer. browse back and forth and it will come up.