Created attachment 127933 [details] pbm ascii file Simply load the attached "fox" image and you will immediately see the problem. The header is : P1 # CREATOR: pbmtovbm version 1.99 617 480 So either Krita doesn't handle the comment, or doesn't handle the line break.
I can confirm that Krita cannot load the image, while imagemagick can. I see that gwenview has similar problems.
Created attachment 127963 [details] pbm with spaces pbm version "P1" opens incorrectly as we are not ignoring whitespace as the spec says. The same file with space added opens as expected.
We read pbm files with QImage though, and I don't see anything where we could specify whether we should ignore whitespace or not.
Yes, we used to have our own filters, but it wasn't worth the effort to maintain those, so this needs to be fixed in Qt.