mmpx

2x image scaling

$ pierogis custom ./input.jpg "resize -s .5; quantize; mmpx"
mmpxed gnome

very chill.

Results in an image with size 2 x width and 2 x height using MMPX. This algorithm uses a series of rules based on nearby pixels to determine how to map a single pixel to 4 corresponding (2*2) output pixels.

You can read about the algorithm, and check out its implementation done in Rust (like quantize).

Thank you to the authors of that algorithm, it’s very cool and performant.

A recipe with resize -s .5, a “style” ingredient/filling (quantize for example), then mmpx creates a nice effect. This is because MMPX is designed for pixel art (small color palette and large pixels), meaning pixels in normal images will typically be scaled using nearest neighbor.

There are no options specific to this ingredient/filling.

See: MMPXFilling