Jens,

Do you need to handle versions P4 to P6 of this format? Your test examples only cover P1->P3 but the write up talks about the P4->P6 formats.

Jooel,

At least one of Jens' test files does contain extra white space (feep.ppm). The extra spaces are systematical placed but they are there.
_________________________
Jack