1

I was following the video below:

https://www.youtube.com/watch?v=aW7CI7SiqQ4&ab_channel=WanjohiKibui

In order to prepare the action in my QGIS project. I want to have my images popped-up instantly.

Unfortunately, I am getting an error like this:

enter image description here

My action properties look as follows:

enter image description here

The image directory is related to the project path.

I also tried the command:

   eog [%Image%]

and

   display [%Image%]

as per the thread here:

Using Hyperlink URL in attribute table of QGIS?

the result the same everywhere

What causes the problem? Is there something with the hotlink?

Issues with hotlinking in QGIS

Geographos
  • 4,087
  • 2
  • 27
  • 88
  • in your second screengrab your action type is "Unix" you need to change that to "open", see @Leehan for more detail – J.R Nov 19 '20 at 16:46
  • not working, no error and no reaction. I guess that 3.12 version has some bug – Geographos Nov 19 '20 at 17:20

2 Answers2

3

Here is what I did in QGis 3.16 with Windows.
I create a field imgin the attribute table, containing a path like C:\blaba\myphoto.jpg.
Then in the layer properties and action menu :

action menu

Then use the wheel in tools bar as usual :

enter image description here

Leehan
  • 1,236
  • 2
  • 10
  • 20
  • not wirking. I guess, that maybe it's some bug somewhere. I have 3.12 version. – Geographos Nov 19 '20 at 13:43
  • any error message ? are you sure about urls of pictures ? You use Windows ? – Leehan Nov 19 '20 at 13:47
  • Yes, Windows 10. What I do not understand from your post are layer properties. What should we change in the layer properties. – Geographos Nov 19 '20 at 13:49
  • 1
    In layer properties, you have a menu named action. You have to create an action with the same parameter as shown in the first image of my answer, and choose at the bottom the field containing path to the pictures [%Image%]in your case. Don't write anything before. – Leehan Nov 19 '20 at 13:54
0

Your command line is right display[%image%]. The Type I used is Open even my system is Windows 10.The image pops when I click using Identify Features tool.