Page 1 of 1

Question re: display -update <seconds> [file]

Posted: 2015-06-29T13:09:47-07:00
by neelfirst
Hello,

I am attempting to use display to reload [file] that is being modified by another process. I would like display to reload the image every 0.1-1 seconds. However display simply exits upon the first modification to [file] when I set <seconds> to 1.0, and does not update at all when <seconds> is set to 0.1. (It does however load properly and show [file] the first time.)

This has been documented in one spot on the web: http://superuser.com/questions/174522/c ... r-in-linux
ImageMagick's display not only does not automatically refresh when the file changes on disk - and even when you press 'refresh' in display, you still do not get the latest version of the file (meaning, you have to restart display to show the latest version :( ).
But the source is over 4 years old. Has this been corrected in the meantime? Is my use model incorrect? Should I pursue another method of reloading and displaying an image?

Re: Question re: display -update <seconds> [file]

Posted: 2015-06-29T13:12:12-07:00
by snibgo
It might help if you said what version IM you use, on what platform.

Re: Question re: display -update <seconds> [file]

Posted: 2015-06-29T13:35:52-07:00
by neelfirst
Right, duh, sorry.

ImageMagick version: 6.9.1-6
OS version: Ubuntu 14.04
Architecture: amd64
Kernel version: Linux 3.13.0-39

Re: Question re: display -update <seconds> [file]

Posted: 2015-06-30T07:24:57-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.9.1-7 Beta available by sometime tomorrow. Thanks.

Re: Question re: display -update <seconds> [file]

Posted: 2017-06-08T00:52:35-07:00
by s3nzyn
...bump?

I have the same problem. Running:

Code: Select all

display -density 120 -update 0.1 mypicture.svg
or

Code: Select all

display -density 120 -update 0.01 mypicture.svg
did not work, while

Code: Select all

display -density 120 -update 1 mypicture.svg
did work:)

Since the svg file is written on change events, I was hoping we could have an update of 0 (e.g. refresh upon change) or at least 0.1. I might be using the wrong version, though. Here's my info:

Code: Select all

Version: ImageMagick 6.9.3-0 Q16 x86_64 2017-03-11 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP 
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms ltdl lzma openexr pangocairo png ps rsvg tiff webp wmf x xml zlib

Code: Select all

$ uname -a
Linux think 4.11.3-200.fc25.x86_64 #1 SMP Thu May 25 19:03:07 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Should I use animate for this instead?

Also, let me congratulate your achievement. So far, you have the only image viewer that doesn't redraw (creating a flicker).

EDIT: I'm on fedora, so it could be Wayland? I'll check. Nope, same same.