convert foo.ppm -compress none bar.ppm найдено здесь http://www.imagemagick.org/Usage/formats/#pbmplus