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

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

3 Answers 3

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

4
  • not wirking. I guess, that maybe it's some bug somewhere. I have 3.12 version.
    – Geographos
    Commented Nov 19, 2020 at 13:43
  • any error message ? are you sure about urls of pictures ? You use Windows ?
    – Leehan
    Commented Nov 19, 2020 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
    Commented Nov 19, 2020 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
    Commented Nov 19, 2020 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.

1
  • Your image doesnt show
    – Bera
    Commented Jul 1, 2021 at 6:11
0

I used Open URL Type in action menu of that layers property and it worked. Windows 10.enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.