I'm running Ubuntu 18.04 (x86_64, kernel 4.15.0-50-generic
). The default image viewer is EOG.
In a directory I stored some images and a text file for each image, with the caption.
- Is it possible to display both the image and the caption with EOG?
- If not, is there any other image viewer which can do this?
I use Kubuntu 18.04 which has Gwenview as its image viewer. It's available in the repositories but it may pull in quite a few dependencies if you haven't already installed other
qt
-based applications. Runapt install -s gwenview
to see if you're comfortable installing it.Gwenview doesn't display a text file and the corresponding image together but it has a sidebar in which you can enter a description of your image by typing or pasting content in the Description box.
In the following composite,
Gwenview uses something called "extended file attributes" to store information you enter in the Descriptions box. I learned that here.
If you decide you want to extract all the descriptions, you can. First install xattr from the Universe repository.
Then, run
from the folder containing your images, assuming them to be .png.
You'll get a consolidated output like this:
I haven't addressed the following issues because I don't understand much about extended file attributes myself:
but the following links could be of use: