<div dir="ltr"><div dir="ltr">Hi Tony,<div><br></div><div>I am not sure about the first part of your questions.</div><div><br></div><div>But for the 2nd part, in relation to expressions, exif data are not currently supported in the expressions. But, as a part of our recent work to add native exif writer to <a href="https://inputapp.io">https://inputapp.io</a> (which now supports writing lat, long, Z, time and direction to photos metadata), we will be also adding exif expressions to QGIS and Input app (which is based on QGIS) in the coming days (next release of QGIS & Input app).</div><div><br></div><div>Kind regards</div><div>Saber</div><div> </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 23 Mar 2021 at 11:36, Tony Spiess <<a href="mailto:spiesspurchaser@outlook.com">spiesspurchaser@outlook.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">






<div>
<font face="Calibri" size="2"><span style="font-size:11pt">
<div>Hi,</div>
<div>A very newbie, Zurich/Win10.</div>
<div>Imported my photos into QGIS, used Display <font color="#4472C4"><img src="<a></a>file:///[% photo %]" width="350" height="250"/></font>, toggled Map Notes, added single label, all worked fine.</div>
<div>Except my photos are landscape but some are portrait.</div>
<div>QGIS strips out most of the photo metadata but leaves Fields “photo” (combined path and filename) and “rotation” which is either 90 or 0 amongst others. NB: QGIS put Fields Long then Lat but other GPS software expect Lat then Lon.</div>
<div>So as QGIS Expression has an IF THEN function is should be possible to check which “rotation” and change width and height accordingly.</div>
<div>But I know QGIS syntax is very picky, so cannot stumble in the dark trying to guess how the expression should go.</div>
<div>I guess something along the lines of:</div>
<div><font color="#4472C4"><img src=if(“rotate”=0, "<a></a>file:///[% photo %]" width="350" height="250","<a></a>file:///[% photo %]" width="250" height="350")/></font></div>
<div>Can anyone please tell me what I need to change please.</div>
<div>Tony</div>
<div> </div>
<div> </div>
</span></font>
</div>

_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Saber Razmjooei<br></div><div><a href="http://www.lutraconsulting.co.uk" target="_blank">www.lutraconsulting.co.uk</a><br></div></div></div></div></div></div></div></div></div></div></div>