The following code which works perfectly on 255 images or less:
Code: Select all
convert "*.png" -depth 1 -negate -evaluate-sequence add -colorspace gray out.pgm
Many thanks!
Code: Select all
convert "*.png" -depth 1 -negate -evaluate-sequence add -colorspace gray out.pgm
Code: Select all
magick -version
Code: Select all
magick "*.png" -colorspace gray -depth 1 -negate -evaluate-sequence add -depth 16 -type grayscale out.pgm
Code: Select all
-compress none
Code: Select all
magick HhIRiMn.png -duplicate 2 -colorspace gray -negate -evaluate-sequence add -evaluate divide 65535 -type grayscale -depth 16 -compress none out.pgm
Code: Select all
magick HhIRiMn.png -duplicate 299 -colorspace gray -negate -evaluate-sequence add -evaluate divide 65535 -type grayscale -depth 16 -compress none out.pgm