[Qgis-user] Image orientation

Saber Razmjooei saber.razmjooei at lutraconsulting.co.uk
Tue Mar 23 07:19:21 PDT 2021


Hi Tony,

I am not sure about the first part of your questions.

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 https://inputapp.io (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).

Kind regards
Saber


On Tue, 23 Mar 2021 at 11:36, Tony Spiess <spiesspurchaser at outlook.com>
wrote:

> 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
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>


-- 
Saber Razmjooei
www.lutraconsulting.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210323/6485b9f7/attachment.html>


More information about the Qgis-user mailing list