diff --git a/pages/common/pambackground.md b/pages/common/pambackground.md new file mode 100644 index 0000000000..70d82e41b2 --- /dev/null +++ b/pages/common/pambackground.md @@ -0,0 +1,9 @@ +# pambackground + +> Create a mask of the background in a PAM image. +> See also: `pbmmask`. +> More information: . + +- Create a mask of the background in a PAM image: + +`pambackground {{path/to/image.pam}} > {{path/to/output.pam}}` diff --git a/pages/common/pamstretch-gen.md b/pages/common/pamstretch-gen.md new file mode 100644 index 0000000000..6439fe4f3b --- /dev/null +++ b/pages/common/pamstretch-gen.md @@ -0,0 +1,9 @@ +# pamstretch-gen + +> Scale up a PAM image by decimal values. +> See also: `pamstretch`, `pamenlarge`, `pamscale`. +> More information: . + +- Scale up a PAM image by the specified decimal factor: + +`pamstretch-gen {{N}} {{path/to/image.pam}} > {{path/to/output.pam}}` diff --git a/pages/common/pamstretch.md b/pages/common/pamstretch.md new file mode 100644 index 0000000000..76df8e88da --- /dev/null +++ b/pages/common/pamstretch.md @@ -0,0 +1,13 @@ +# pamstretch + +> Scale up a PAM image by interpolating between pixels. +> See also: `pamstretch-gen`, `pamenlarge`, `pamscale`. +> More information: . + +- Scale up a PAM image by an integer factor: + +`pamstretch {{N}} {{path/to/image.pam}} > {{path/to/output.pam}}` + +- Scale up a PAM image by the specified factors in the horizontal and vertical directions: + +`pamstretch -xscale {{XN}} -yscale {{YN}} {{path/to/image.pam}} > {{path/to/output.pam}}` diff --git a/pages/common/pbmclean.md b/pages/common/pbmclean.md new file mode 100644 index 0000000000..78c1f42e93 --- /dev/null +++ b/pages/common/pbmclean.md @@ -0,0 +1,16 @@ +# pbmclean + +> Clean up a PBM image by erasing isolated black and white pixels. +> More information: . + +- Clean up a PBM image by erasing isolated black and white pixels: + +`pbmclean {{path/to/image.pbm}} > {{path/to/output.pbm}}` + +- Clean up only black/white pixels: + +`pbmclean -{{black|white}} {{path/to/image.pbm}} > {{path/to/output.pbm}}` + +- Specify the minimum number of neighbouring pixels of the same color in order for a pixel not to be considered isolated: + +`pbmclean -minneighbours {{3}} {{path/to/image.pbm}} > {{path/to/output.pbm}}` diff --git a/pages/common/pbmmask.md b/pages/common/pbmmask.md new file mode 100644 index 0000000000..4c7953982e --- /dev/null +++ b/pages/common/pbmmask.md @@ -0,0 +1,13 @@ +# pbmmask + +> Create a mask bitmap from a regular bitmap. +> See also: `pambackground`. +> More information: . + +- Create a mask bitmap separating background from foreground: + +`pbmmask {{path/to/image.pbm}} > {{path/to/output.pbm}}` + +- Expand the generated mask by one pixel: + +`pbmmask -expand {{path/to/image.pbm}} > {{path/to/output.pbm}}` diff --git a/pages/common/pbmpage.md b/pages/common/pbmpage.md new file mode 100644 index 0000000000..1a87dd0a21 --- /dev/null +++ b/pages/common/pbmpage.md @@ -0,0 +1,16 @@ +# pbmpage + +> Generate a test pattern for printing. +> More information: . + +- Generate a test pattern for printing onto US standard paper: + +`pbmpage > {{path/to/file.pbm}}` + +- Generate a test pattern for printing onto A4 paper: + +`pbmpage -a4 > {{path/to/file.pbm}}` + +- Specify the pattern to use: + +`pbmpage {{1|2|3}} > {{path/to/file.pbm}}` diff --git a/pages/common/pbmpscale.md b/pages/common/pbmpscale.md new file mode 100644 index 0000000000..b1f5344537 --- /dev/null +++ b/pages/common/pbmpscale.md @@ -0,0 +1,9 @@ +# pbmpscale + +> Enlarge a PBM image with edge smoothing. +> See also: `pamenlarge`. +> More information: . + +- Enlarge a PBM image by the specified factor with edge smoothing: + +`pbmpscale {{N}} {{path/to/image.pbm}} > {{path/to/file.pbm}}`