2025-03-14 21:59:59 -06:00
|
|
|
# pamfix
|
|
|
|
|
|
|
|
|
|
> Fix errors in PAM, PBM, PGM and PPM files.
|
|
|
|
|
> See also: `pamfile`, `pamvalidate`.
|
|
|
|
|
> More information: <https://netpbm.sourceforge.net/doc/pamfix.html>.
|
|
|
|
|
|
|
|
|
|
- Fix a Netpbm file that is missing its last part:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`pamfix {{[-t|-truncate]}} {{path/to/corrupted.ext}} > {{path/to/output.ext}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Fix a Netpbm file where pixel values exceed the image's `maxval` by lowering the offending pixels' values:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`pamfix {{[-cl|-clip]}} {{path/to/corrupted.ext}} > {{path/to/output.ext}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Fix a Netpbm file where pixel values exceed the image's `maxval` by increasing it:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`pamfix {{[-ch|-changemaxval]}} {{path/to/corrupted.pam|pbm|pgm|ppm}} > {{path/to/output.pam|pbm|pgm|ppm}}`
|