I get weird results when displaying a PPM:
(this is actually an upscaled PNG)
And here's what the file looks like:
The dimensions are fine (10 rows, 8 columns), just the colors are wrong (or am I wrong?).
As it says in the 3rd line of the file, I want to use a value from 0 to 255 per channel. Using an usual rgb color space like (255, 255, 255) for white, (0, 0, 0) for black, (255, 0, 0) for red and so on. But those colors in the image are apparently not the same as in the file.
Already at the first look, the image seems way to dark.
Do I misunderstand the format? Is the file not interpretated this way?