Options (3)
-tbooleanFix a Netpbm file that is missing its last part
Example:
pamfix {{[-t|-truncate]}} {{path/to/corrupted.ext}} > {{path/to/output.ext}}booleanFix a Netpbm file where pixel values exceed the image's `maxval` by lowering the offending pixels' values
Example:
pamfix {{[-cl|-clip]}} {{path/to/corrupted.ext}} > {{path/to/output.ext}}booleanFix a Netpbm file where pixel values exceed the image's `maxval` by increasing it
Example:
pamfix {{[-ch|-changemaxval]}} {{path/to/corrupted.pam|pbm|pgm|ppm}} > {{path/to/output.pam|pbm|pgm|ppm}}Examples (3)
Fix a Netpbm file that is missing its last part
pamfix [-t|-truncate] path/to/corrupted.ext > path/to/output.extFix a Netpbm file where pixel values exceed the image's `maxval` by lowering the offending pixels' values
pamfix [-cl|-clip] path/to/corrupted.ext > path/to/output.extFix a Netpbm file where pixel values exceed the image's `maxval` by increasing it
pamfix [-ch|-changemaxval] path/to/corrupted.pam|pbm|pgm|ppm > path/to/output.pam|pbm|pgm|ppmmade by @shridhargupta | data from tldr-pages