28

Are there any image viewers which will auto reload the view when the image file is written to?

I normally use debian variations of linux however appreciate all answers related to any "Unix & Linux" environments.

Mateusz Piotrowski
  • 4,623
  • 5
  • 36
  • 70
AnnanFay
  • 815
  • 2
  • 10
  • 14
  • This image is very lacking in Quality. No one knows what system you use. – DisplayName Nov 13 '14 at 18:13
  • 1
    Please *always* include your OS. Solutions very often depend on the Operating System being used. Are you using Unix, Linux, BSD, OSX, something else? Which version? – terdon Nov 13 '14 at 18:28

11 Answers11

16

The old Gnome image viewer Eye of Gnome seems to automatically reload the image when it is edit in a program such as Gimp. There is also a reload plugin so to you can use a button to reload the image:
enter image description here

Works in version 3.8.2

Wilf
  • 2,337
  • 2
  • 22
  • 39
16

feh can reload a file on a periodic timer.

An example of the command: feh --reload 0.1 picture.png.

It reloads without being the active window, which is really nice. To make it look "hacker" use -x.

Solution found in http://forums.fedoraforum.org/showthread.php?t=255652.

Chris Stryczynski
  • 5,178
  • 5
  • 40
  • 80
DiCaprio
  • 261
  • 2
  • 5
9

KDE's okular does that (at least with PDFs which are completely replaced).

Hauke Laging
  • 88,146
  • 18
  • 125
  • 174
3

For Linux systems, eog (eye of gnome) and eom (eye of mate) both ask you if you want to refresh if the image is changed.

The evince PDF viewer updates automatically if the PDF is changed.

terdon
  • 234,489
  • 66
  • 447
  • 667
  • 2
    My version of eog refreshes automatically, which is what I want. – AnnanFay Nov 14 '14 at 11:43
  • Eog has a really unfortunate behavior. Suppose you're using it to view a file, then you delete the file and create a new version of the file with the same name. For this application, we would like it either to blank the window or leave it frozen on the original version, and then refresh when the new version appears. What it does instead is to pick some other file (I'm guessing the next one in alphabetical order of the same type) and start displaying that instead. Okular seems better for this purpose. –  May 29 '21 at 19:07
3

The --watch/-T option enables reloading in qiv.

xn.
  • 323
  • 3
  • 5
2

If you're on OSX, Xee3 automatically reloads on file changes.

Chris Stryczynski
  • 5,178
  • 5
  • 40
  • 80
maxhawkins
  • 121
  • 2
1

https://gitlab.com/dknof/siv does what you want.

Here's how I built it:

$ sudo apt-get install clang libgtkmm-3.0-dev ccache
...output omitted...
$ mkdir ~/src; cd ~/src
$ git clone https://gitlab.com/dknof/siv.git
...output omitted...
$ cd siv/src
$ make

And here's how I use it:

$ pwd
~/src/siv/src
$ ./siv ~/docs/my_image.png

Then, whenever I write to ~/docs/my_image.png, siv automatically re-loads the image immediately.

I got this answer from here: https://askubuntu.com/a/783622/177787

daveloyall
  • 228
  • 1
  • 12
  • Maybe it's great if you can read German. – Vladimir Panteleev Dec 16 '19 at 19:58
  • 1
    I do not read German, and the `siv` program is still great. My answer includes all the information required to use it. I think it displays error messages in German, but it doesn't display any text when it works. – daveloyall Dec 16 '19 at 21:45
  • A software recommendation request generally implies that the recommended software is accompanied with comprehensible documentation and other related resources. What if you need to use other features, or run into a problem building it, or need to file a bug, or make a patch (even the source code comments are in German!)? Considering that there exists software solving this task (as in other answers) localized in a language comprehensible to this website's visitors, this seems like a poor answer. Sorry. – Vladimir Panteleev Dec 17 '19 at 00:38
1

geeqie

Nobody has mentioned geeqie? This is my goto image viewer and is very powerful and fast and it will auto reload the image upon file change.

deltaray
  • 1,301
  • 2
  • 11
  • 19
0

Preview.app does what you want. (If you click on the desktop, and the back, the image is refreshed.)

DisplayName
  • 11,468
  • 20
  • 73
  • 115
0

Sublime text also allows you to do this. Just open the image and it will auto-refresh without any additional settings.

benathon
  • 180
  • 1
  • 9
0

On MS Windows, JPEGView does auto-refresh of images (useful for instance with PlantUML). Download here: https://github.com/sylikc/jpegview or with PortableApps.

mayeulk
  • 31
  • 2