Example of secret resize algorithm:

Original, 8x6 pixels:

Enlarged: