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

asked Nov 19, 2020 at 12:29
2
  • in your second screengrab your action type is "Unix" you need to change that to "open", see @Leehan for more detail Commented Nov 19, 2020 at 16:46
  • not working, no error and no reaction. I guess that 3.12 version has some bug 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

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

answered Jul 1, 2021 at 3:26
1
  • Your image doesnt show 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

answered Aug 24, 2024 at 9:07

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.