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:
My action properties look as follows:
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?
-
in your second screengrab your action type is "Unix" you need to change that to "open", see @Leehan for more detailJ.R– J.R2020年11月19日 16:46:39 +00:00Commented Nov 19, 2020 at 16:46
-
not working, no error and no reaction. I guess that 3.12 version has some bugGeographos– Geographos2020年11月19日 17:20:37 +00:00Commented Nov 19, 2020 at 17:20
3 Answers 3
Here is what I did in QGis 3.16 with Windows.
I create a field img
in the attribute table, containing a path like C:\blaba\myphoto.jpg
.
Then in the layer properties and action
menu :
Then use the wheel in tools bar as usual :
-
not wirking. I guess, that maybe it's some bug somewhere. I have 3.12 version.Geographos– Geographos2020年11月19日 13:43:24 +00:00Commented Nov 19, 2020 at 13:43
-
any error message ? are you sure about urls of pictures ? You use Windows ?Leehan– Leehan2020年11月19日 13:47:08 +00:00Commented 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– Geographos2020年11月19日 13:49:12 +00:00Commented Nov 19, 2020 at 13:49
-
1In 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– Leehan2020年11月19日 13:54:55 +00:00Commented Nov 19, 2020 at 13:54
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.
I used Open URL Type in action menu of that layers property and it worked. Windows 10.enter image description here