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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
neelfirst
Posts: 2
Joined: 2015-06-29T13:03:49-07:00
Authentication code: 6789

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

Post 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?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post by snibgo »

It might help if you said what version IM you use, on what platform.
snibgo's IM pages: im.snibgo.com
neelfirst
Posts: 2
Joined: 2015-06-29T13:03:49-07:00
Authentication code: 6789

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

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
s3nzyn
Posts: 1
Joined: 2017-06-08T00:42:55-07:00
Authentication code: 1151

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

Post 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.
Post Reply