diff --git a/pages/common/atktopbm.md b/pages/common/atktopbm.md new file mode 100644 index 000000000..77301b700 --- /dev/null +++ b/pages/common/atktopbm.md @@ -0,0 +1,9 @@ +# atktopbm + +> Convert a Andrew Toolkit raster object to a PBM image. +> See also: `pbmtoatk`. +> More information: . + +- Convert a Andrew Toolkit raster object to a PBM image: + +`atktopbm {{path/to/image.atk}} > {{path/to/output.pbm}}` diff --git a/pages/common/pamditherbw.md b/pages/common/pamditherbw.md index 3ca2482ef..a8a2bb3f2 100644 --- a/pages/common/pamditherbw.md +++ b/pages/common/pamditherbw.md @@ -1,6 +1,7 @@ # pamditherbw > Apply dithering to a greyscale image, i.e. turn it into a pattern of black and white pixels that look the same as the original greyscale. +> See also: `pbmreduce`. > More information: . - Read a PGM image, apply dithering and save it to a file: diff --git a/pages/common/pamenlarge.md b/pages/common/pamenlarge.md new file mode 100644 index 000000000..ce437da1f --- /dev/null +++ b/pages/common/pamenlarge.md @@ -0,0 +1,13 @@ +# pamenlarge + +> Enlarge a PAM image by duplicating pixels. +> See also: `pbmreduce`, `pamditherbw`, `pbmpscale`. +> More information: . + +- Enlarge the specified image by the specified factor: + +`pamenlarge -scale {{N}} {{path/to/image.pam}} > {{path/to/output.pam}}` + +- Enlarge the specified image by the specified factors horizontally and vertically: + +`pamenlarge -xscale {{XN}} -yscale {{YN}} {{path/to/image.pam}} > {{path/to/output.pam}}` diff --git a/pages/common/pbmreduce.md b/pages/common/pbmreduce.md new file mode 100644 index 000000000..173b29672 --- /dev/null +++ b/pages/common/pbmreduce.md @@ -0,0 +1,17 @@ +# pbmreduce + +> Proportionally reduce a PBM image. +> See also: `pamenlarge`, `pamditherbw`. +> More information: . + +- Reduce the specified image by the specified factor: + +`pbmreduce {{N}} {{path/to/image.pbm}} > {{path/to/output.pbm}}` + +- Use simple thresholding when reducing: + +`pbmreduce -threshold {{N}} {{path/to/image.pbm}} > {{path/to/output.pbm}}` + +- Use the specified threshold for all quantizations: + +`pbmreduce -value {{0.6}} {{N}} {{path/to/image.pbm}} > {{path/to/output.pbm}}` diff --git a/pages/common/pbmtext.md b/pages/common/pbmtext.md new file mode 100644 index 000000000..50cd366fc --- /dev/null +++ b/pages/common/pbmtext.md @@ -0,0 +1,21 @@ +# pbmtext + +> Render text as a PBM image. +> See also: `pbmtextps`. +> More information: . + +- Render a single line of text as a PBM image: + +`pbmtext "{{Hello World!}}" > {{path/to/output.pbm}}` + +- Render multiple lines of text as a PBM image: + +`echo "{{Hello\nWorld!}}" | pbmtext > {{path/to/output.pbm}}` + +- Render text using a custom font supplied as a PBM file: + +`pbmtext -font {{path/to/font.pbm}} "{{Hello World!}}" > {{path/to/output.pbm}}` + +- Specify the number of pixels between characters and lines: + +`echo "{{Hello\nWorld!}}" | pbmtext -space {{3}} -lspace {{10}} > {{path/to/output.pbm}}` diff --git a/pages/common/pbmtextps.md b/pages/common/pbmtextps.md new file mode 100644 index 000000000..ebd918449 --- /dev/null +++ b/pages/common/pbmtextps.md @@ -0,0 +1,21 @@ +# pbmtextps + +> Render text as a PBM image using PostScript. +> See also: `pbmtext`. +> More information: . + +- Render a single line of text as a PBM image: + +`pbmtextps "{{Hello World!}}" > {{path/to/output.pbm}}` + +- Specify the font and font size: + +`pbmtextps -font {{Times-Roman}} -fontsize {{30}} "{{Hello World!}}" > {{path/to/output.pbm}}` + +- Specify the desired left and top margins: + +`pbmtextps -leftmargin {{70}} -topmargin {{162}} "{{Hello World!}}" > {{path/to/output.pbm}}` + +- Do not output the rendered text as a PBM image, but a PostScript program that would create this image: + +`pbmtextps -dump-ps "{{Hello World!}}" > {{path/to/output.ps}}` diff --git a/pages/common/pbmtoatk.md b/pages/common/pbmtoatk.md new file mode 100644 index 000000000..bc574e47b --- /dev/null +++ b/pages/common/pbmtoatk.md @@ -0,0 +1,9 @@ +# pbmtoatk + +> Convert a PBM image to an Andrew Toolkit raster object. +> See also: `atktopbm`. +> More information: . + +- Convert a PBM image to an Andrew Toolkit raster object: + +`pbmtoatk {{path/to/image.pbm}} > {{path/to/output.atk}}` diff --git a/pages/common/pbmtobbnbg.md b/pages/common/pbmtobbnbg.md new file mode 100644 index 000000000..6ccdbf14a --- /dev/null +++ b/pages/common/pbmtobbnbg.md @@ -0,0 +1,12 @@ +# pbmtobbnbg + +> Convert a PBM image to a BitGraph graphic. +> More information: . + +- Convert a PBM image to a BitGraph terminal Display Pixel Data sequence: + +`pbmtobbnbg < {{path/to/image.pbm}} > {{path/to/output.dpd}}` + +- Specify the rasterop: + +`pbmtobbnbg {{3}} < {{path/to/image.pbm}} > {{path/to/output.dpd}}`