[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qgis-user
Subject:    Re: [Qgis-user] Image orientation
From:       Thayer Young <thayeray () yahoo ! com>
Date:       2021-03-24 19:25:05
Message-ID: 2057168453.4936111.1616613905345 () mail ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


 Hi Tony,
The map tips functionality for viewing photos is very difficult to style.
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.   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.
-Thayer

===========================================================================================Date: \
                Tue, 23 Mar 2021 11:36:35 +0000
From: Tony Spiess <spiesspurchaser@outlook.com>
To: "qgis-user@lists.osgeo.org" <qgis-user@lists.osgeo.org>
Subject: [Qgis-user] Image orientation
Message-ID:
       <LNXP123MB20765A52B32E727AB8876110AA649@LNXP123MB2076.GBRP123.PROD.OUTLOOK.COM>
  
Content-Type: text/plain; charset="us-ascii"

Hi,
A very newbie, Zurich/Win10.
Imported my photos into QGIS, used Display <img src="file:///[% photo %]" width="350" \
height="250"/>, toggled Map Notes, added single label, all worked fine. Except my \
photos are landscape but some are portrait. 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. So as QGIS Expression has an IF THEN function is should \
be possible to check which "rotation" and change width and height accordingly. But I \
know QGIS syntax is very picky, so cannot stumble in the dark trying to guess how the \
expression should go. I guess something along the lines of:
<img src=if("rotate"=0, "file:///[% photo %]" width="350" height="250","file:///[% \
photo %]" width="250" height="350")/> Can anyone please tell me what I need to change \
please. Tony


  


[Attachment #5 (text/html)]

<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.&nbsp;</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 &lt;<a href="mailto:spiesspurchaser@outlook.com" rel="nofollow" \
target="_blank">spiesspurchaser@outlook.com</a>&gt;<br></div><div dir="ltr">To: "<a \
href="mailto:qgis-user@lists.osgeo.org" rel="nofollow" \
target="_blank">qgis-user@lists.osgeo.org</a>" &lt;<a \
href="mailto:qgis-user@lists.osgeo.org" rel="nofollow" \
target="_blank">qgis-user@lists.osgeo.org</a>&gt;<br></div><div dir="ltr">Subject: \
[Qgis-user] Image orientation<br></div><div dir="ltr">Message-ID:<br></div><div \
dir="ltr">&nbsp;&nbsp;&nbsp; &lt;<a \
href="mailto:LNXP123MB20765A52B32E727AB8876110AA649@LNXP123MB2076.GBRP123.PROD.OUTLOOK.COM" \
rel="nofollow" target="_blank">LNXP123MB20765A52B32E727AB8876110AA649@LNXP123MB2076.GBRP123.PROD.OUTLOOK.COM</a>&gt;<br></div><div \
dir="ltr">&nbsp;&nbsp;&nbsp; <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 &lt;img src="file:///[% photo %]" width="350" \
height="250"/&gt;, 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">&lt;img \
src=if("rotate"=0, "file:///[% photo %]" width="350" height="250","file:///[% photo \
%]" width="250" height="350")/&gt;<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>



_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic