This works fine for me on IM 6.9.10.29 Q16 Mac OSX with libpng 1.6.36
Code: Select all
convert "Base Color.bmp" -filter Lanczos -distort Resize 50% result.png
Check your version of libpng and upgrade if old. Also your version of ImageMagick is over a year since it has been patched. See if there is a more current patch.
One issue with Linux distro versions of ImageMagick is they often patch only for security issues and not always for other bugs and enhancements. Also they do not update the version to match the date, so on the surface 6.9.7.4 is very old, but was patched Jan 2017. It is also possible that the version you have has a bug.
You can find your libpng version using
look at the end of the line for PNG
Note that you can create all the levels at the same time. This writes each resized image to disk and uses that same image to resize for the next level.
Code: Select all
convert base.bmp \
-filter Lanczos -distort Resize 50% +write level0.png \
-filter Lanczos -distort Resize 50% +write level1.png \
-filter Lanczos -distort Resize 50% +write level2.png \
...
-filter Lanczos -distort Resize 50% +write levelN.png \
null:
This
https://imagemagick.org/Usage/files/#write is an alternate approach resizing from the original.