| Summary: | Displays gibberish for certain PBM ASCII files | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Aaron Boxer <boxerab> |
| Component: | File formats | Assignee: | Krita Bugs <krita-bugs-null> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | minor | CC: | ghevan, halla, tamtamy.tymona |
| Priority: | NOR | ||
| Version First Reported In: | git master (please specify the git hash!) | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
pbm ascii file
pbm with spaces |
||
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. |
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.