mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 14:15:44 +02:00
pamfixtrunc, pamfix, pamvalidate: add pages (#12406)
* pamfixtrunc, pamfix, pamvalidate: add pages --------- Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
c2b3a2a880
commit
8b9720a256
3 changed files with 34 additions and 0 deletions
17
pages/common/pamfix.md
Normal file
17
pages/common/pamfix.md
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# 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:
|
||||||
|
|
||||||
|
`pamfix -truncate {{path/to/corrupted.ext} > {{path/to/output.ext}}`
|
||||||
|
|
||||||
|
- Fix a Netpbm file where pixel values exceed the image's `maxval` by lowering the offending pixels' values:
|
||||||
|
|
||||||
|
`pamfix -clip {{path/to/corrupted.ext}} > {{path/to/output.ext}}`
|
||||||
|
|
||||||
|
- Fix a Netpbm file where pixel values exceed the image's maxval by increasing it:
|
||||||
|
|
||||||
|
`pamfix -changemaxval {{path/to/corrupted.pam|pbm|pgm|ppm}} > {{path/to/output.pam|pbm|pgm|ppm}}`
|
8
pages/common/pamfixtrunc.md
Normal file
8
pages/common/pamfixtrunc.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# pamfixtrunc
|
||||||
|
|
||||||
|
> This command is superseded by `pamfix -truncate`.
|
||||||
|
> More information: <https://netpbm.sourceforge.net/doc/pamfixtrunc.html>.
|
||||||
|
|
||||||
|
- View documentation for the current command:
|
||||||
|
|
||||||
|
`tldr pamfix`
|
9
pages/common/pamvalidate.md
Normal file
9
pages/common/pamvalidate.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# pamvalidate
|
||||||
|
|
||||||
|
> Validate PAM, PGM, PBM and PPM files.
|
||||||
|
> See also: `pamfile`, `pamfix`.
|
||||||
|
> More information: <https://netpbm.sourceforge.net/doc/pamvalidate.html>.
|
||||||
|
|
||||||
|
- Copy a Netpbm file from `stdin` to `stdout` if and only if it valid; fail otherwise:
|
||||||
|
|
||||||
|
`{{command}} | pamvalidate > {{path/to/output.ext}}`
|
Loading…
Add table
Reference in a new issue