Using IM 7.0.8-53 Q16 x64 HDRI on Windows 10. The FX expression "%[fx:n]" gives incorrect results when there are no images in the list. Here is an example command...
Code: Select all
magick logo: -duplicate 5 -delete 0--1 -print "%[fx:n]" null:
That should show the number of images in the list as "0", but instead incorrectly reports the number of images as "1".
The issue also occurs when using the "n" by itself inside square brackets as in this command...
Code: Select all
magick logo: -duplicate 5 -delete 0--1 -print "%[n]" null:
That reports "1" image, but it should show "0". Interestingly, without the square brackets it correctly reports "0" images, like this...
Code: Select all
magick logo: -duplicate 5 -delete 0--1 -print "%n" null:
The issue also occurs in version IM 6.9.10-11 Q16 x64 HDRI. I have no idea which version(s) were first to have this problem.