[Qgis-user] How to have photos appear in HTML tips *and* the attribute editor?

chris hermansen clhermansen at gmail.com
Sun Apr 16 09:37:25 PDT 2023


Adam and list,

On Sun, Apr 16, 2023, 08:25 Adam Nielsen via QGIS-User <
qgis-user at lists.osgeo.org> wrote:

[Stuff deleted]

>
>
> In the layer I have specified this as:
>
>   <img src="file://[% "photo" %]" />
>

[Stuff deleted]

>
>
> P.S. I have seen many things saying you must specify the URL as
> file:/// with three slashes to make it work under Windows, but under
> Linux you must have only two slashes.  It would be nice if any solution
> to this worked across all platforms.
>

I can't speak to solving your problem, but as to your PS:


https://en.m.wikipedia.org/wiki/File_URI_scheme

will help you understand file URLs. Specifically the format is

file://host/path

and when host is omitted the slash delimiter is not.

Note especially the comment

... two slashes, without a hostname) is never correct, but is often used
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230416/f3224224/attachment.htm>


More information about the QGIS-User mailing list