OK, most of it is done. I'm working on the preview, but where can I find the "nearest neighbor" scaling?
Now it's readable! And where to choose the scaling method depends on your editor. For instance, in GIMP it's under Image -> Scale Image -> Interpolation (or Layer -> Scale Layer), while in mtPaint it's under Image -> Scale Canvas.