<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Calibri Light";
panose-1:2 15 3 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:"\.Helvetica Neue Interface";
panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"Préformaté HTML Car";
margin:0cm;
font-size:10.0pt;
font-family:"Courier New";}
span.PrformatHTMLCar
{mso-style-name:"Préformaté HTML Car";
mso-style-priority:99;
mso-style-link:"Préformaté HTML";
font-family:Consolas;
mso-ligatures:none;
mso-fareast-language:FR;}
span.gmailsignatureprefix
{mso-style-name:gmail_signature_prefix;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#2F5496;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:none;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US">I manage to print images in an atlas layout and to show them in the popup without problem.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US">In the popup, I use this code :<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span style="color:#2F5496;mso-fareast-language:EN-US">[% CASE<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"> WHEN "photo1" IS NOT NULL OR trim("photo1") != ''<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"> THEN concat(<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"> '<p>', '<b>Photo N°1</b>', '<div class="field">',
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-indent:35.4pt"><span style="color:#2F5496;mso-fareast-language:EN-US"> concat( '<a href="', "photo1", '" target="_blank">',<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-indent:35.4pt"><span style="color:#2F5496;mso-fareast-language:EN-US"> ' <img src="',"photo1", '" width="100%" title="Photo N°1">', ' </a>'),<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt;text-indent:35.4pt"><span style="color:#2F5496;mso-fareast-language:EN-US">'</div>', '</p>' )<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"> ELSE ''<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"> END %]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US">where photo1 is like : « ../media/upload/name_of_the_project/name_of_the_layer/name_of_the_field/name_of_the_picture.jpg »<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US">In the atlas layout, i use an HTML frame with this code :<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"><table><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:35.4pt"><span style="color:#2F5496;mso-fareast-language:EN-US"><tr><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"> <td><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"> [%if( attribute(@atlas_feature,'photo1') IS NOT NULL,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"> concat('<img src=',attribute( @atlas_feature , 'photo1' ),' width=100%>'),'')%]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"> </td><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"> </tr><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"></table><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US">With this example, it’s OK under Lizmap Web Client. I haven’t tried under QGIS but I think it will be OK if I had the same tree structure.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US">I hope this feedback will help you.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US">
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US">Regards.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="margin-left:-1.7pt;border-collapse:collapse">
<tbody>
<tr style="height:108.5pt">
<td width="164" colspan="2" valign="top" style="width:122.7pt;padding:0cm 5.4pt 0cm 5.4pt;height:108.5pt">
<p class="MsoNormal" style="margin-left:-14.2pt"><a href="https://www.agglo-fecampcauxlittoral.fr/"><span style="color:#2E74B5;mso-fareast-language:EN-US;text-decoration:none"><img border="0" width="148" height="123" style="width:1.5416in;height:1.2812in" id="Image_x0020_1" src="cid:image001.png@01DA0B29.7151EC90"></span></a><span style="font-size:9.0pt;font-family:".Helvetica Neue Interface",sans-serif;color:#2F5496;mso-ligatures:standardcontextual;mso-fareast-language:EN-US"><o:p></o:p></span></p>
</td>
<td width="387" valign="top" style="width:290.6pt;padding:0cm 5.4pt 0cm 5.4pt;height:108.5pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#009DBC;mso-ligatures:standardcontextual;mso-fareast-language:EN-US">Alain LE GALLOU<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#009DBC;mso-ligatures:standardcontextual;mso-fareast-language:EN-US">Géomaticien / Chargé du Système d'Information Géographique (SIG)<br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#4A6875;mso-ligatures:standardcontextual;mso-fareast-language:EN-US">Communauté d’Agglomération Fécamp Caux Littoral<br>
825, route de Valmont - 76 403 Fécamp Cedex<br>
Tél. : 02 35 10 48 48<br>
Port. : 06 14 19 52 51<br>
Fax : 02 35 10 31 66<br>
Mail : </span><span style="mso-ligatures:standardcontextual;mso-fareast-language:EN-US"><a href="mailto:alain.legallou@agglo-fecampcauxlittoral.fr"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#0563C1">alain.legallou@agglo-fecampcauxlittoral.fr</span></a></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#4A6875;mso-ligatures:standardcontextual;mso-fareast-language:EN-US"><br>
Site internet : </span><span style="mso-ligatures:standardcontextual;mso-fareast-language:EN-US"><a href="http://www.agglo-fecampcauxlittoral.fr/"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#0563C1">www.agglo-fecampcauxlittoral.fr</span></a></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#4A6875;mso-ligatures:standardcontextual;mso-fareast-language:EN-US"><o:p></o:p></span></p>
</td>
<td style="border:none;padding:0cm 0cm 0cm 0cm" width="110">
<p class="MsoNormal"> </p>
</td>
</tr>
<tr>
<td width="50" style="width:37.5pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" align="right" style="text-align:right;line-height:105%"><span style="font-size:10.0pt;line-height:105%;color:#2E74B5;mso-fareast-language:EN-US"><img border="0" width="27" height="27" style="width:.2812in;height:.2812in" id="Image_x0020_5" src="cid:image002.gif@01DA0B29.7151EC90" alt="Eco-attitude"><span style="mso-ligatures:standardcontextual"><o:p></o:p></span></span></p>
</td>
<td width="585" colspan="3" valign="top" style="width:438.9pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="line-height:105%"><b><span style="font-size:8.0pt;line-height:105%;font-family:"Arial",sans-serif;color:#36A629;mso-ligatures:standardcontextual;mso-fareast-language:EN-US">Adoptez l'éco-attitude.</span></b><span style="font-size:8.0pt;line-height:105%;font-family:"Arial",sans-serif;color:#36A629;mso-ligatures:standardcontextual;mso-fareast-language:EN-US">
</span><span style="font-size:8.0pt;line-height:105%;font-family:"Arial",sans-serif;color:#2E74B5;mso-ligatures:standardcontextual;mso-fareast-language:EN-US"><br>
</span><span style="font-size:8.0pt;line-height:105%;font-family:"Arial",sans-serif;color:#36A629;mso-ligatures:standardcontextual;mso-fareast-language:EN-US">N'imprimez ce courriel que si c'est vraiment nécessaire</span><span style="font-size:8.0pt;line-height:105%;font-family:"Arial",sans-serif;color:#2E74B5;mso-ligatures:standardcontextual;mso-fareast-language:EN-US"><o:p></o:p></span></p>
</td>
</tr>
<tr height="0">
<td width="50" style="border:none"></td>
<td width="114" style="border:none"></td>
<td width="387" style="border:none"></td>
<td width="110" style="border:none"></td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="color:#2F5496"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>De :</b> Lizmap <lizmap-bounces@lists.osgeo.org> <b>De la part de</b> Arnaud Vandecasteele via Lizmap<br>
<b>Envoyé :</b> lundi 30 octobre 2023 11:26<br>
<b>À :</b> Etienne Trimaille <etrimaille@3liz.com><br>
<b>Cc :</b> lizmap@lists.osgeo.org<br>
<b>Objet :</b> Re: [Lizmap] Atlas printing with images from media folder<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<o:p></o:p></p>
</div>
<p class="MsoNormal">I remember encountering the same problem a few months ago. <br>
I think we had a discussion about an improvement made by René-luc.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">But I can't find our discussion in my emails...<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Adding images in an atlas was not possible, it is like they were not fully loaded.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Arnaud<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Mon, Oct 30, 2023 at 12:27 PM Etienne Trimaille via Lizmap <<a href="mailto:lizmap@lists.osgeo.org">lizmap@lists.osgeo.org</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div>
<p>Hi,<o:p></o:p></p>
<p>Does a static logo/picture just stored in 'media/' works ?<o:p></o:p></p>
<p>It should be, anyway, without expressions.<o:p></o:p></p>
<p>But I sometimes use an expression with it doesn't work : <a href="https://docs.lizmap.com/current/en/publish/configuration/print.html#adding-your-own-images-in-a-layout" target="_blank">
https://docs.lizmap.com/current/en/publish/configuration/print.html#adding-your-own-images-in-a-layout</a><o:p></o:p></p>
<p><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 25/10/2023 20:48, G. Wagner, Wagner-IT via Lizmap wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>Hi,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I am photographing and saving images directly from the Lizmap client. The<o:p></o:p></pre>
<pre>images are saved autom. under ./media/......<o:p></o:p></pre>
<pre>And also displayed again in the popup window.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Now I want to use these images also in the atlas print.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>If I copy the complete media directory locally, the atlas print incl. the<o:p></o:p></pre>
<pre>images in the local QGIS works fine. <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>But the images are not found in the atlas print in the WebClient. Is there<o:p></o:p></pre>
<pre>a trick?<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Thanks and greetings<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Günter<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>QGIS Server 3.22.16 (Ubuntu) with Lizmap 3.6.7<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>WAGNER-IT<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Ingenieurbüro für Geoinformatik<o:p></o:p></pre>
<pre>Carl-Orff-Weg 7<o:p></o:p></pre>
<pre>79312 Emmendingen<o:p></o:p></pre>
<pre>Tel.: 07641/9621668<o:p></o:p></pre>
<pre>Fax: 07641/915599<o:p></o:p></pre>
<pre><a href="http://www.wagner-it.de" target="_blank">www.wagner-it.de</a> <a href="http://www.wagner-it.de/" target="_blank"><http://www.wagner-it.de/></a> <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Lizmap mailing list<o:p></o:p></pre>
<pre><a href="mailto:Lizmap@lists.osgeo.org" target="_blank">Lizmap@lists.osgeo.org</a><o:p></o:p></pre>
<pre><a href="https://lists.osgeo.org/mailman/listinfo/lizmap" target="_blank">https://lists.osgeo.org/mailman/listinfo/lizmap</a><o:p></o:p></pre>
</blockquote>
<div>
<p class="MsoNormal">-- <o:p></o:p></p>
<p><b><span style="color:yellowgreen">Etienne Trimaille</span></b> <br>
Géomaticien <br>
<a href="http://www.3liz.com" target="_blank"><span style="color:yellowgreen;text-decoration:none">www.3liz.com</span></a>
<br>
<span style="font-size:9.0pt"><br>
<b>Tel.</b> 06 12 93 11 39 <br>
<b>Bureau</b> <br>
31, rue de l'Argenterie <br>
34000 Montpellier <br>
<b>Siège social</b> <br>
73, allée Kleber <br>
Boulevard de Strasbourg <br>
34000 Montpellier </span><o:p></o:p></p>
<p><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Lizmap mailing list<br>
<a href="mailto:Lizmap@lists.osgeo.org" target="_blank">Lizmap@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/lizmap" target="_blank">https://lists.osgeo.org/mailman/listinfo/lizmap</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<br>
<span class="gmailsignatureprefix">-- </span><o:p></o:p></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">--------------------------------------------------------------------<br>
Arnaud Vandecasteele<br>
<br>
<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>