magick script -print %n wrong output

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
dirk1976
Posts: 27
Joined: 2010-09-08T22:16:11-07:00
Authentication code: 8675308
Location: Germany

magick script -print %n wrong output

Post by dirk1976 »

The output for "-print %n" is 1, but no image was loaded. In version 7.0.7 it works.

ImageMagick-7.0.8-12
>magick -script -
-print "%n\\n"
1

ImageMagick-7.0.7
>magick -script -
-print "%n\\n"
0

see: https://imagemagick.org/discourse-serve ... 55#p159855
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: magick script -print %n wrong output

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.
Post Reply