Browse Source

pbmmake, pgmmake, ppmlabel, ppmmake, ppmmix, ppmntsc, ppmpat: add pages (#11435)

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Juri Dispan 1 year ago
parent
commit
ac390f0fd0

+ 12 - 0
pages/common/pbmmake.md

@@ -0,0 +1,12 @@
+# pbmmake
+
+> Create a blank bitmap.
+> More information: <https://netpbm.sourceforge.net/doc/pbmmake.html>.
+
+- Create a blank bitmap of the specified dimensions:
+
+`pbmmake {{width}} {{height}} > {{path/to/output_file.pbm}}`
+
+- Specify the color of the created bitmap:
+
+`pbmmake -{{white|black|grey}} {{width}} {{height}} > {{path/to/output_file.pbm}}`

+ 8 - 0
pages/common/pgmmake.md

@@ -0,0 +1,8 @@
+# pgmmake
+
+> Create PGM image with a uniform gray level.
+> More information: <https://netpbm.sourceforge.net/doc/pgmmake.html>.
+
+- Create PGM image with a uniform gray level (specified as a number between 0 and 1) and the specified dimensions:
+
+`pgmmake {{graylevel}} {{width}} {{height}} > {{path/to/output_file.pgm}}`

+ 16 - 0
pages/common/ppmlabel.md

@@ -0,0 +1,16 @@
+# ppmlabel
+
+> Add text to a PPM image.
+> More information: <https://netpbm.sourceforge.net/doc/ppmlabel.html>.
+
+- Add text to a PPM image at the specified location:
+
+`ppmlabel -x {{pos_x}} -y {{pos_y}} -text {{text}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}`
+
+- Add multiple texts at different locations:
+
+`ppmlabel -x {{pos_x1}} -y {{pos_y1}} -text {{text1}} -x {{pos_x2}} -y {{pos_y2}} -text {{text2}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}`
+
+- Specify the line color, the background color, the tilt and the size of the added text:
+
+`ppmlabel -x {{pos_x}} -y {{pos_y}} -color {{line_color}} -background {{background_color}} -angle {{tilt}} -size {{size}} -text {{text}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}`

+ 8 - 0
pages/common/ppmmake.md

@@ -0,0 +1,8 @@
+# ppmmake
+
+> Create a PPM image of a specified color and dimensions.
+> More information: <https://netpbm.sourceforge.net/doc/ppmmake.html>.
+
+- Create a PPM image of the specified color and dimensions:
+
+`ppmmake {{color}} {{width}} {{height}} > {{path/to/output_file.ppm}}`

+ 8 - 0
pages/common/ppmmix.md

@@ -0,0 +1,8 @@
+# ppmmix
+
+> Blend together two PPM images.
+> More information: <https://netpbm.sourceforge.net/doc/ppmmix.html>.
+
+- Blend the specified PPM images using fadefactor to control the weight of each image:
+
+`ppmmix {{fadefactor}} {{path/to/input_file1.ppm}} {{path/to/input_file2.ppm}} > {{path/to/output_file.ppm}}`

+ 20 - 0
pages/common/ppmntsc.md

@@ -0,0 +1,20 @@
+# ppmntsc
+
+> Make the RGB colors in a PPM image compatible with NTSC or PAL color systems.
+> More information: <https://netpbm.sourceforge.net/doc/ppmntsc.html>.
+
+- Make the RGB colors in a PPM image compatible with NTSC color systems:
+
+`ppmntsc {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}`
+
+- Make the RGB colors in a PPM image compatible with PAL color systems:
+
+`ppmntsc --pal {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}`
+
+- Print the number of illegal pixels in the input image to `stderr`:
+
+`ppmntsc --verbose {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}`
+
+- Output only legal/illegal/corrected pixels, set other pixels to black:
+
+`ppmntsc --{{legalonly|illegalonly|correctedonly}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}`

+ 12 - 0
pages/common/ppmpat.md

@@ -0,0 +1,12 @@
+# ppmpat
+
+> Produce a PPM image with a pattern.
+> More information: <https://netpbm.sourceforge.net/doc/ppmpat.html>.
+
+- Produce a PPM file of the specified pattern with the specified dimensions:
+
+`ppmpat -{{gingham2|gingham3|madras|tartan|poles|...}} {{width}} {{height}} > {{path/to/file.ppm}}`
+
+- Produce a PPM file of a camo pattern using the specified colors:
+
+`ppmpat -camo -color {{color1,color2,...}} {{width}} {{height}} > {{path/to/file.ppm}}`