Hm. After reading some more about the formats, it should also be possible to extend the graphics a bit to be
P1\x0a# (offset: 0)
so the magic includes the (possible) comment in line 2, although this comment is not required. But it is less generic than just searching for P1..7.
Hm. After reading some more about the formats, it should also be possible to extend the graphics a bit to be
P1\x0a# (offset: 0)
so the magic includes the (possible) comment in line 2, although this comment is not required. But it is less generic than just searching for P1..7.