<html><head></head><body><div class="ydpce4cd687yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
        <div dir="ltr" data-setdir="false"><span style="color: rgb(38, 40, 42);">Hi Tony,</span></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">The map tips functionality for viewing photos is very difficult to style.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">The ImportPhotos plugin has a nice interface for viewing your photos, you can also navigate between photos without having to move the cursor or click again. Navigation is chronological if you use the "Import Geotagged Photos" tool to "import" the photos. On my system the plugin imports them in a random order. </div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Unfortunately the ImportPhotos plugin does not correct for the rotation, it seems to look only at the width and height. You may be able to correct this with image processing software before QGIS.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><span style="color: rgb(38, 40, 42);">-Thayer</span></div><div dir="ltr" data-setdir="false"><span style="color: rgb(38, 40, 42);"><br></span></div><div dir="ltr" data-setdir="false"><span style="color: rgb(38, 40, 42);"><br></span></div><div><span style="color: rgb(38, 40, 42);">===========================================================================================</span></div><div><span style="color: rgb(38, 40, 42);">Date: Tue, 23 Mar 2021 11:36:35 +0000</span><br></div></div><div id="ydp8eae5b8fyahoo_quoted_7138216208" class="ydp8eae5b8fyahoo_quoted"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"><div><div dir="ltr">From: Tony Spiess <<a href="mailto:spiesspurchaser@outlook.com" rel="nofollow" target="_blank">spiesspurchaser@outlook.com</a>><br></div><div dir="ltr">To: "<a href="mailto:qgis-user@lists.osgeo.org" rel="nofollow" target="_blank">qgis-user@lists.osgeo.org</a>" <<a href="mailto:qgis-user@lists.osgeo.org" rel="nofollow" target="_blank">qgis-user@lists.osgeo.org</a>><br></div><div dir="ltr">Subject: [Qgis-user] Image orientation<br></div><div dir="ltr">Message-ID:<br></div><div dir="ltr">    <<a href="mailto:LNXP123MB20765A52B32E727AB8876110AA649@LNXP123MB2076.GBRP123.PROD.OUTLOOK.COM" rel="nofollow" target="_blank">LNXP123MB20765A52B32E727AB8876110AA649@LNXP123MB2076.GBRP123.PROD.OUTLOOK.COM</a>><br></div><div dir="ltr">    <br></div><div dir="ltr">Content-Type: text/plain; charset="us-ascii"<br></div><div dir="ltr"><br></div><div dir="ltr">Hi,<br></div><div dir="ltr">A very newbie, Zurich/Win10.<br></div><div dir="ltr">Imported my photos into QGIS, used Display <img src="file:///[% photo %]" width="350" height="250"/>, toggled Map Notes, added single label, all worked fine.<br></div><div dir="ltr">Except my photos are landscape but some are portrait.<br></div><div dir="ltr">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.<br></div><div dir="ltr">So as QGIS Expression has an IF THEN function is should be possible to check which "rotation" and change width and height accordingly.<br></div><div dir="ltr">But I know QGIS syntax is very picky, so cannot stumble in the dark trying to guess how the expression should go.<br></div><div dir="ltr">I guess something along the lines of:<br></div><div dir="ltr"><img src=if("rotate"=0, "file:///[% photo %]" width="350" height="250","file:///[% photo %]" width="250" height="350")/><br></div><div dir="ltr">Can anyone please tell me what I need to change please.<br></div><div dir="ltr">Tony<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div></div>
            </div>
        </div></body></html>