Challenges
Text visible after scaling down
Steganography
Hard
Changing image scale
Solves: 11
Text visible after scaling down
Author: CyberSamSU
Points
95
You can divide an image into FACTOR×FACTOR pixel blocks and randomly scatter the values in each block — then each pixel looks like independent noise. But if they are scattered so that the average value of the block corresponds to a specific number, when the image is scaled down by this FACTOR (by averaging the pixels), the "original" value of the block is restored.
The attached shovqin.png file looks like pure noise at full size. Scale it down exactly 4 times — the text will appear.
To scale down by averaging in PIL: img.resize((w//4, h//4), Image.BOX). A simple resize() (with the standard filter) also gives a sufficiently close result.
Attached files
shovqin.png
Log in to download
SHA-256 checksums
shovqin.png: bfbd18bac041072e8c4c3d182737ab1caf3c0cc9d8276558a368b3a848337635
To submit a flag, log in.