A novel lossless compression scheme for binary images that uses multi-level dictionaries to efficiently encode spatial patterns.