 the image index to set a different <var>pause delay</var> on the first image in the animation:</p>

<pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>magick rose: -duplicate 29 -virtual-pixel Gray -distort SRT '%[fx:360.0*t/n]' \
  -set delay '%[fx:t == 0 ? 240 : 10]' -loop 0 rose.gif
</samp></pre>

<p>This example tests the difference between two images, measured by RMSE. If the difference is greater than 0.1 it returns 1; otherwise it returns 0:</p>

<pre class="p-3 mb-2 text-body-seco