Page 1 of 1

question about -monitor

Posted: 2008-03-10T11:56:35-07:00
by fmw42
I have been using -monitor to report the progress in scripts that especially use -fx. I notice that the progress readout seems to progress exponentially rather than linearly. For example it might read 0%, 3%, 6%, 12%, 25%, 50%, 100%.

Is this intended?

Would it be possible to make the readout more linear?

Currently I using IM 6.3.8-11

Re: question about -monitor

Posted: 2008-03-10T12:06:45-07:00
by magick
The progress monitor is behaving as it was designed-- to mark process on powers of two boundaries or a maximum of every 128 scanlines. If you have a better way post your patches to QuantumTick() here:

Code: Select all

static inline MagickBooleanType QuantumTick(const MagickOffsetType offset,
  const MagickSizeType span)
{
  if ((offset & (offset-1)) == 0)
    return(MagickTrue);
  if ((offset & 0x7f) == 0)
    return(MagickTrue);
  if (offset == (MagickOffsetType) (span-1))
    return(MagickTrue);
  return(MagickFalse);
}