From e1d44b5166b81c780954160eed85c7f2a6f55fdd Mon Sep 17 00:00:00 2001 From: Antti Savolainen Date: Fri, 28 Mar 2025 18:12:09 +0200 Subject: [PATCH] batch3 --- pages/common/anytopnm.md | 2 +- pages/common/pbmtoascii.md | 2 +- pages/common/pbmtoepsi.md | 6 +++--- pages/common/pbmtoepson.md | 4 ++-- pages/common/pbmtoescp2.md | 6 +++--- pages/common/pbmtogem.md | 4 ++-- pages/common/pbmtolj.md | 2 +- pages/common/pbmtomacp.md | 2 +- pages/common/pbmtonokia.md | 12 ++++++------ pages/common/pgmhist.md | 8 ++++---- pages/common/pgmkernel.md | 2 +- pages/common/pngtopam.md | 4 ++-- pages/common/pnmalias.md | 4 ++-- pages/common/pnmcolormap.md | 4 ++-- pages/common/pnmcrop.md | 6 +++--- pages/common/pnmgamma.md | 4 ++-- pages/common/pnmhisteq.md | 2 +- pages/common/pnmhistmap.md | 4 ++-- pages/common/pnmindex.md | 6 +++--- pages/common/pnmmargin.md | 2 +- pages/common/pnmmercator.md | 2 +- pages/common/pnmmontage.md | 4 ++-- pages/common/pnmnorm.md | 4 ++-- pages/common/pnmpad.md | 8 ++++---- pages/common/pnmquantall.md | 2 +- pages/common/pnmremap.md | 8 ++++---- pages/common/pnmrotate.md | 4 ++-- pages/common/pnmscalefixed.md | 6 +++--- pages/common/pnmshear.md | 4 ++-- pages/common/pnmsmooth.md | 2 +- pages/common/pnmtoddif.md | 2 +- pages/common/pnmtofiasco.md | 8 ++++---- pages/common/pnmtopalm.md | 6 +++--- pages/common/pnmtopclxl.md | 4 ++-- pages/common/pnmtopng.md | 2 +- pages/common/pnmtops.md | 4 ++-- pages/common/pnmtorle.md | 4 ++-- pages/common/pnmtosgi.md | 2 +- pages/common/pnmtoxwd.md | 4 ++-- pages/common/ppmntsc.md | 4 ++-- pages/common/rasttopnm.md | 2 +- pages/common/rawtopgm.md | 10 +++++----- pages/common/rletopnm.md | 4 ++-- pages/common/sgitopnm.md | 4 ++-- pages/common/tifftopnm.md | 6 +++--- pages/common/winicontopam.md | 6 +++--- pages/common/xwdtopnm.md | 4 ++-- 47 files changed, 103 insertions(+), 103 deletions(-) diff --git a/pages/common/anytopnm.md b/pages/common/anytopnm.md index e3f4c805d9..3f7aa25c15 100644 --- a/pages/common/anytopnm.md +++ b/pages/common/anytopnm.md @@ -9,4 +9,4 @@ - Display version: -`anytopnm -version` +`anytopnm {{[-v|-version]}}` diff --git a/pages/common/pbmtoascii.md b/pages/common/pbmtoascii.md index 4f333a6f48..a650719ff0 100644 --- a/pages/common/pbmtoascii.md +++ b/pages/common/pbmtoascii.md @@ -18,4 +18,4 @@ - Display version: -`pbmtoascii -version` +`pbmtoascii {{[-v|-version]}}` diff --git a/pages/common/pbmtoepsi.md b/pages/common/pbmtoepsi.md index a9ac4b324f..2af2d703c7 100644 --- a/pages/common/pbmtoepsi.md +++ b/pages/common/pbmtoepsi.md @@ -9,12 +9,12 @@ - Produce a quadratic output image with the specified resolution: -`pbmtoepsi -dpi {{144}} {{path/to/image.pbm}} > {{path/to/output.bmp}}` +`pbmtoepsi {{[-d|-dpi]}} {{144}} {{path/to/image.pbm}} > {{path/to/output.bmp}}` - Produce an output image with the specified horizontal and vertical resolution: -`pbmtoepsi -dpi {{72x144}} {{path/to/image.pbm}} > {{path/to/output.bmp}}` +`pbmtoepsi {{[-d|-dpi]}} {{72x144}} {{path/to/image.pbm}} > {{path/to/output.bmp}}` - Only create a boundary box: -`pbmtoepsi -bbonly {{path/to/image.pbm}} > {{path/to/output.bmp}}` +`pbmtoepsi {{[-b|-bbonly]}} {{path/to/image.pbm}} > {{path/to/output.bmp}}` diff --git a/pages/common/pbmtoepson.md b/pages/common/pbmtoepson.md index 2aab7f1df5..05510f1a7c 100644 --- a/pages/common/pbmtoepson.md +++ b/pages/common/pbmtoepson.md @@ -10,8 +10,8 @@ - Specify the printer protocol of the output: -`pbmtoepson -protocol {{escp9|escp}} {{path/to/image.pbm}} > {{path/to/output.epson}}` +`pbmtoepson {{[-p|-protocol]}} {{escp9|escp}} {{path/to/image.pbm}} > {{path/to/output.epson}}` - Specify the horizontal DPI of the output: -`pbmtoepson -dpi {{60|72|80|90|120|144|240}} {{path/to/image.pbm}} > {{path/to/output.epson}}` +`pbmtoepson {{[-d|-dpi]}} {{60|72|80|90|120|144|240}} {{path/to/image.pbm}} > {{path/to/output.epson}}` diff --git a/pages/common/pbmtoescp2.md b/pages/common/pbmtoescp2.md index 752ccabd81..b6a9390317 100644 --- a/pages/common/pbmtoescp2.md +++ b/pages/common/pbmtoescp2.md @@ -10,12 +10,12 @@ - Specify the compression of the output: -`pbmtoescp2 -compression {{0|1}} {{path/to/image.pbm}} > {{path/to/output.escp2}}` +`pbmtoescp2 {{[-c|-compression]}} {{0|1}} {{path/to/image.pbm}} > {{path/to/output.escp2}}` - Specify the horizontal and vertical resolution of the output in dots per inch: -`pbmtoescp2 -resolution {{180|360|720}} {{path/to/image.pbm}} > {{path/to/output.escp2}}` +`pbmtoescp2 {{[-re|-resolution]}} {{180|360|720}} {{path/to/image.pbm}} > {{path/to/output.escp2}}` - Place a formfeed command at the end of the output: -`pbmtoescp2 -formfeed {{path/to/image.pbm}} > {{path/to/output.escp2}}` +`pbmtoescp2 {{[-f|-formfeed]}} {{path/to/image.pbm}} > {{path/to/output.escp2}}` diff --git a/pages/common/pbmtogem.md b/pages/common/pbmtogem.md index f9c7a52c3e..eee3168eea 100644 --- a/pages/common/pbmtogem.md +++ b/pages/common/pbmtogem.md @@ -10,8 +10,8 @@ - Suppress all informational messages: -`pbmtogem -quiet` +`pbmtogem {{[-q|-quiet]}}` - Display version: -`pbmtogem -version` +`pbmtogem {{[-v|-version]}}` diff --git a/pages/common/pbmtolj.md b/pages/common/pbmtolj.md index 763a64911e..87ccb6b3db 100644 --- a/pages/common/pbmtolj.md +++ b/pages/common/pbmtolj.md @@ -13,4 +13,4 @@ - Specify the required resolution: -`pbmtolj -resolution {{75|100|150|300|600}} {{path/to/input.pbm}} > {{path/to/output.lj}}` +`pbmtolj {{[-r|-resolution]}} {{75|100|150|300|600}} {{path/to/input.pbm}} > {{path/to/output.lj}}` diff --git a/pages/common/pbmtomacp.md b/pages/common/pbmtomacp.md index a590a32704..4b8cf43f07 100644 --- a/pages/common/pbmtomacp.md +++ b/pages/common/pbmtomacp.md @@ -10,4 +10,4 @@ - Do not compress the output file: -`pbmtomacp -norle {{path/to/image.pbm}} > {{path/to/output.macp}}` +`pbmtomacp {{[-n|-norle]}} {{path/to/image.pbm}} > {{path/to/output.macp}}` diff --git a/pages/common/pbmtonokia.md b/pages/common/pbmtonokia.md index addac7d1a9..6d640d57a5 100644 --- a/pages/common/pbmtonokia.md +++ b/pages/common/pbmtonokia.md @@ -5,24 +5,24 @@ - Convert a PBM image into a Nokia Operator Logo as hexcode: -`pbmtonokia -fmt NEX_NOL -net {{network_operator_code}} {{path/to/image.pbm}} > {{path/to/output.hex}}` +`pbmtonokia {{[-f|-fmt]}} NEX_NOL -net {{network_operator_code}} {{path/to/image.pbm}} > {{path/to/output.hex}}` - Convert a PBM image into a Nokia Group Graphic as hexcode: -`pbmtonokia -fmt NEX_NGG {{path/to/image.pbm}} > {{path/to/output.hex}}` +`pbmtonokia {{[-f|-fmt]}} NEX_NGG {{path/to/image.pbm}} > {{path/to/output.hex}}` - Convert a PBM image into a Nokia Picture Message with the specified text as hexcode: -`pbmtonokia -fmt NEX_NPM -txt {{text_message}} {{path/to/image.pbm}} > {{path/to/output.hex}}` +`pbmtonokia {{[-f|-fmt]}} NEX_NPM -txt {{text_message}} {{path/to/image.pbm}} > {{path/to/output.hex}}` - Convert a PBM image into a Nokia Operator Logo as a NOL file: -`pbmtonokia -fmt NOL {{path/to/image.pbm}} > {{path/to/output.nol}}` +`pbmtonokia {{[-f|-fmt]}} NOL {{path/to/image.pbm}} > {{path/to/output.nol}}` - Convert a PBM image into a Nokia Group Graphic as an NGG file: -`pbmtonokia -fmt NGG {{path/to/image.pbm}} > {{path/to/output.ngg}}` +`pbmtonokia {{[-f|-fmt]}} NGG {{path/to/image.pbm}} > {{path/to/output.ngg}}` - Convert a PBM image into a Nokia Picture Message as an NPM file: -`pbmtonokia -fmt NPM {{path/to/image.pbm}} > {{path/to/output.npm}}` +`pbmtonokia {{[-f|-fmt]}} NPM {{path/to/image.pbm}} > {{path/to/output.npm}}` diff --git a/pages/common/pgmhist.md b/pages/common/pgmhist.md index 03259b17c8..c09e53c677 100644 --- a/pages/common/pgmhist.md +++ b/pages/common/pgmhist.md @@ -10,16 +10,16 @@ - Display the median grey value: -`pgmhist -median {{path/to/image.pgm}}` +`pgmhist {{[-me|-median]}} {{path/to/image.pgm}}` - Display four quartile grey value: -`pgmhist -quartile {{path/to/image.pgm}}` +`pgmhist {{[-q|-quartile]}} {{path/to/image.pgm}}` - Report the existence of invalid grey values: -`pgmhist -forensic {{path/to/image.pgm}}` +`pgmhist {{[-f|-forensic]}} {{path/to/image.pgm}}` - Display machine-readable output: -`pgmhist -machine {{path/to/image.pgm}}` +`pgmhist {{[-ma|-machine]}} {{path/to/image.pgm}}` diff --git a/pages/common/pgmkernel.md b/pages/common/pgmkernel.md index 4d96f35cbe..358e6874c8 100644 --- a/pages/common/pgmkernel.md +++ b/pages/common/pgmkernel.md @@ -14,4 +14,4 @@ - Specify the weight of the center in the generated kernel: -`pgmkernel -weight {{value}} {{width}} {{height}} > {{path/to/output.pgm}}` +`pgmkernel {{[-w|-weight]}} {{value}} {{width}} {{height}} > {{path/to/output.pgm}}` diff --git a/pages/common/pngtopam.md b/pages/common/pngtopam.md index 7ff269dd85..06e2d2e5a6 100644 --- a/pages/common/pngtopam.md +++ b/pages/common/pngtopam.md @@ -14,8 +14,8 @@ - Replace transparent pixels by the specified color: -`pngtopam -mix -background {{color}} {{path/to/image.png}} > {{path/to/output.pam}}` +`pngtopam {{[-m|-mix]}} {{[-ba|-background]}} {{color}} {{path/to/image.png}} > {{path/to/output.pam}}` - Write tEXt chunks found in the input image to the specified text file: -`pngtopam -text {{path/to/file.txt}} {{path/to/image.png}} > {{path/to/output.pam}}` +`pngtopam {{[-te|-text]}} {{path/to/file.txt}} {{path/to/image.png}} > {{path/to/output.pam}}` diff --git a/pages/common/pnmalias.md b/pages/common/pnmalias.md index 429e89d33c..eb69f8fd68 100644 --- a/pages/common/pnmalias.md +++ b/pages/common/pnmalias.md @@ -13,8 +13,8 @@ - Apply altialiasing to foreground pixels only: -`pnmalias -fonly {{path/to/input.pnm}} > {{path/to/output.ppm}}` +`pnmalias {{[-fo|-fonly]}} {{path/to/input.pnm}} > {{path/to/output.ppm}}` - Apply antialiasing to all surrounding pixels of background pixels: -`pnmalias -balias {{path/to/input.pnm}} > {{path/to/output.ppm}}` +`pnmalias {{[-ba|-balias]}} {{path/to/input.pnm}} > {{path/to/output.ppm}}` diff --git a/pages/common/pnmcolormap.md b/pages/common/pnmcolormap.md index f0bd7330ce..bd61116e30 100644 --- a/pages/common/pnmcolormap.md +++ b/pages/common/pnmcolormap.md @@ -9,8 +9,8 @@ - Use the splitspread strategy for determining the output colors, possibly producing a better result for images with small details: -`pnmcolormap -splitspread {{n_colors}} {{path/to/input.pnm}} > {{path/to/output.ppm}}` +`pnmcolormap {{[-splits|-splitspread]}} {{n_colors}} {{path/to/input.pnm}} > {{path/to/output.ppm}}` - Sort the resulting colormap, which is useful for comparing colormaps: -`pnmcolormap -sort {{path/to/input.pnm}} > {{path/to/output.ppm}}` +`pnmcolormap {{[-so|-sort]}} {{path/to/input.pnm}} > {{path/to/output.ppm}}` diff --git a/pages/common/pnmcrop.md b/pages/common/pnmcrop.md index c0a70050c4..b27f542980 100644 --- a/pages/common/pnmcrop.md +++ b/pages/common/pnmcrop.md @@ -5,11 +5,11 @@ - Remove white borders on a PNM image: -`pnmcrop -white {{path/to/image.pnm}} > {{path/to/output.pnm}}` +`pnmcrop {{[-w|-white]}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` - Remove borders of the specified color that are on the top and left side of the image: -`pnmcrop -bg-color {{color}} -top -left {{path/to/image.pnm}} > {{path/to/output.pnm}}` +`pnmcrop -bg-color {{color}} {{[-t|-top]}} {{[-l|-left]}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` - Determine the color of the borders to be removed by the color of the pixel in the specified corner: @@ -17,4 +17,4 @@ - Leave a border with a width of `n` pixels. Additionally, specify the behaviour if the image is entirely made out of background: -`pnmcrop -margins {{n}} -blank-image {{pass|minimize|maxcrop}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` +`pnmcrop {{[-m|-margin]}} {{n}} {{[-blan|-blank-image]}} {{pass|minimize|maxcrop}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` diff --git a/pages/common/pnmgamma.md b/pages/common/pnmgamma.md index fed6681baf..cf3834404c 100644 --- a/pages/common/pnmgamma.md +++ b/pages/common/pnmgamma.md @@ -13,8 +13,8 @@ - Specify the gamma value used for the gamma transfer function: -`pnmgamma -gamma {{value}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` +`pnmgamma {{[-ga|-gamma]}} {{value}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` - Specify the gamma value used for the gamma transfer function per color component: -`pnmgamma -rgamma {{value}} -ggamma {{value}} -bgamma {{value}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` +`pnmgamma {{[-rg|-rgamma]}} {{value}} {{[-gg|-ggamma]}} {{value}} {{[-bg|-bgamma]}} {{value}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` diff --git a/pages/common/pnmhisteq.md b/pages/common/pnmhisteq.md index 95710ee2f5..e13872eb72 100644 --- a/pages/common/pnmhisteq.md +++ b/pages/common/pnmhisteq.md @@ -9,7 +9,7 @@ - Only modify grey pixels: -`pnmhisteq -grey {{path/to/input.pnm}} > {{path/to/output.pnm}}` +`pnmhisteq {{[-g|-grey]}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` - Do not include black or white pixels in the histogram equalization: diff --git a/pages/common/pnmhistmap.md b/pages/common/pnmhistmap.md index 5b3dc477b5..9e723548fc 100644 --- a/pages/common/pnmhistmap.md +++ b/pages/common/pnmhistmap.md @@ -9,8 +9,8 @@ - Draw the histogram as dots instead of bars: -`pnmhistmap -dots {{path/to/input.pnm}} > {{path/to/output.pnm}}` +`pnmhistmap {{[-d|-dots]}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` - Specify the range of intensity values to include: -`pnmhistmap -lval {{minval}} -rval {{maxval}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` +`pnmhistmap {{[-l|-lval]}} {{minval}} {{[-rv|-rval]}} {{maxval}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` diff --git a/pages/common/pnmindex.md b/pages/common/pnmindex.md index 4dfbf39f12..4d58e658b8 100644 --- a/pages/common/pnmindex.md +++ b/pages/common/pnmindex.md @@ -10,12 +10,12 @@ - Specify the size of the (quadratic) thumbnails: -`pnmindex -size {{50}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}` +`pnmindex {{[-s|-size]}} {{50}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}` - Specify the number of thumbnails per row: -`pnmindex -across {{10}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}` +`pnmindex {{[-a|-across]}} {{10}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}` - Specify the maximum number of colors in the output: -`pnmindex -colors {{512}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}` +`pnmindex {{[-c|-colors]}} {{512}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pnm}}` diff --git a/pages/common/pnmmargin.md b/pages/common/pnmmargin.md index 2e5e21e303..047a803ced 100644 --- a/pages/common/pnmmargin.md +++ b/pages/common/pnmmargin.md @@ -9,4 +9,4 @@ - Specify the color of the border: -`pnmmargin -color {{color}} {{size}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` +`pnmmargin {{[-c|-color]}} {{color}} {{size}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` diff --git a/pages/common/pnmmercator.md b/pages/common/pnmmercator.md index 02f86f5066..0d9fe1087d 100644 --- a/pages/common/pnmmercator.md +++ b/pages/common/pnmmercator.md @@ -10,4 +10,4 @@ - Convert a Mercator projection worldmap to rectangular projection: -`pnmmercator -inverse {{path/to/image.pnm}} > {{path/to/output.pnm}}` +`pnmmercator {{[-i|-inverse]}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` diff --git a/pages/common/pnmmontage.md b/pages/common/pnmmontage.md index a51f7ea7d0..683464ac2b 100644 --- a/pages/common/pnmmontage.md +++ b/pages/common/pnmmontage.md @@ -13,8 +13,8 @@ - Produce a packing that is not larger than `p` percent of the optimal packing: -`pnmmontage -quality {{p}} {{path/to/image1.pnm path/to/image2.pnm ...}} > {{path/to/output.pnm}}` +`pnmmontage {{[-qua|-quality]}} {{p}} {{path/to/image1.pnm path/to/image2.pnm ...}} > {{path/to/output.pnm}}` - Write the positions of the input files within the packed image to a machine-readable file: -`pnmmontage -data {{path/to/datafile}} {{path/to/image1.pnm path/to/image2.pnm ...}} > {{path/to/output.pnm}}` +`pnmmontage {{[-d|-data]}} {{path/to/datafile}} {{path/to/image1.pnm path/to/image2.pnm ...}} > {{path/to/output.pnm}}` diff --git a/pages/common/pnmnorm.md b/pages/common/pnmnorm.md index 69185f9bc1..8797f01770 100644 --- a/pages/common/pnmnorm.md +++ b/pages/common/pnmnorm.md @@ -10,11 +10,11 @@ - Force the brightest pixels to be white, the darkest pixels to be black and spread out the ones in between quadratically such that pixels with a brightness of `n` become 50 % bright: -`pnmnorm -midvalue {{n}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` +`pnmnorm {{[-midv|-midvalue]}} {{n}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` - Keep the pixels' hue, only modify the brightness: -`pnmnorm -keephues {{path/to/image.pnm}} > {{path/to/output.pnm}}` +`pnmnorm {{[-k|-keephues]}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` - Specify a method to calculate a pixel's brightness: diff --git a/pages/common/pnmpad.md b/pages/common/pnmpad.md index fff6452100..f2b5aad493 100644 --- a/pages/common/pnmpad.md +++ b/pages/common/pnmpad.md @@ -6,16 +6,16 @@ - Add borders of the specified sizes to the image: -`pnmpad -left {{100}} -right {{150}} -top {{123}} -bottom {{456}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` +`pnmpad {{[-l|-left]}} {{100}} {{[-ri|-right]}} {{150}} {{[-t|-top]}} {{123}} {{[-bo|-bottom]}} {{456}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` - Pad the image to the specified size: -`pnmpad -width {{1000}} -height {{500}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` +`pnmpad {{[-wi|-width]}} {{1000}} {{[-he|-height]}} {{500}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` - Pad the width of the image to the specified size, controlling the ratio between right and left padding: -`pnmpad -width {{1000}} -halign {{0.7}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` +`pnmpad {{[-wi|-width]}} {{1000}} {{[-ha|-halign]}} {{0.7}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` - Pad the width of the image using the specified color: -`pnmpad -width {{1000}} -color {{red}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` +`pnmpad {{[-wi|-width]}} {{1000}} {{[-c|-color]}} {{red}} {{path/to/image.pnm}} > {{path/to/output.pnm}}` diff --git a/pages/common/pnmquantall.md b/pages/common/pnmquantall.md index 5ddb949bae..81214e9d28 100644 --- a/pages/common/pnmquantall.md +++ b/pages/common/pnmquantall.md @@ -10,4 +10,4 @@ - Save the quantised images to files named the same as the input files, but with the specified extension appended: -`pnmquantall -ext {{extension}} {{n_colors}} {{path/to/input1.pnm path/to/input2.pnm ...}}` +`pnmquantall {{[-e|-ext]}} {{extension}} {{n_colors}} {{path/to/input1.pnm path/to/input2.pnm ...}}` diff --git a/pages/common/pnmremap.md b/pages/common/pnmremap.md index e50432b7e4..fc04d5eac0 100644 --- a/pages/common/pnmremap.md +++ b/pages/common/pnmremap.md @@ -5,16 +5,16 @@ - Replace the colors in an image with those in the specified color palette: -`pnmremap -mapfile {{path/to/palette_file.ppm}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` +`pnmremap {{[-ma|-mapfile]}} {{path/to/palette_file.ppm}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` - Use Floyd-Steinberg dithering for representing colors missing in the color palette: -`pnmremap -mapfile {{path/to/palette_file.ppm}} -floyd {{path/to/input.pnm}} > {{path/to/output.pnm}}` +`pnmremap {{[-ma|-mapfile]}} {{path/to/palette_file.ppm}} {{[-fs|-floyd]}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` - Use the first color in the palette for representing colors missing in the color palette: -`pnmremap -mapfile {{path/to/palette_file.ppm}} -firstisdefault {{path/to/input.pnm}} > {{path/to/output.pnm}}` +`pnmremap {{[-ma|-mapfile]}} {{path/to/palette_file.ppm}} {{[-fi|-firstisdefault]}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` - Use the specified color for representing colors missing in the color palette: -`pnmremap -mapfile {{path/to/palette_file.ppm}} -missingcolor {{color}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` +`pnmremap {{[-ma|-mapfile]}} {{path/to/palette_file.ppm}} {{[-m|-missingcolor]}} {{color}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` diff --git a/pages/common/pnmrotate.md b/pages/common/pnmrotate.md index 6e19746801..abcecc5e16 100644 --- a/pages/common/pnmrotate.md +++ b/pages/common/pnmrotate.md @@ -9,8 +9,8 @@ - Specify the background color exposed by rotating the input image: -`pnmrotate -background {{color}} {{angle}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` +`pnmrotate {{[-b|-background]}} {{color}} {{angle}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` - Disable anti-aliasing, improving performance but decreasing quality: -`pnmrotate -noantialias {{angle}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` +`pnmrotate {{[-n|-noantialias]}} {{angle}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` diff --git a/pages/common/pnmscalefixed.md b/pages/common/pnmscalefixed.md index 080b75f6b4..7b2db73e25 100644 --- a/pages/common/pnmscalefixed.md +++ b/pages/common/pnmscalefixed.md @@ -6,12 +6,12 @@ - Scale an image such that the result has the specified dimensions: -`pnmscalefixed -width {{width}} -height {{height}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` +`pnmscalefixed {{[-w|-width]}} {{width}} {{[-h|-height]}} {{height}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` - Scale an image such that the result has the specified width, keeping the aspect ratio: -`pnmscalefixed -width {{width}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` +`pnmscalefixed {{[-w|-width]}} {{width}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` - Scale an image such that its width and height is changed by the specified factors: -`pnmscalefixed -xscale {{x_factor}} -yscale {{y_factor}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` +`pnmscalefixed {{[-xsc|-xscale]}} {{x_factor}} {{[-ysc|-yscale]}} {{y_factor}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` diff --git a/pages/common/pnmshear.md b/pages/common/pnmshear.md index 8cd96428a5..eb42bb7531 100644 --- a/pages/common/pnmshear.md +++ b/pages/common/pnmshear.md @@ -9,8 +9,8 @@ - Specify the color of the background in the sheared image: -`pnmshear -background {{blue}} {{angle}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` +`pnmshear {{[-b|-background]}} {{blue}} {{angle}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` - Do not perform anti-aliasing: -`pnmshear -noantialias {{angle}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` +`pnmshear {{[-n|-noantialias]}} {{angle}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` diff --git a/pages/common/pnmsmooth.md b/pages/common/pnmsmooth.md index a1b486431d..edb366c50a 100644 --- a/pages/common/pnmsmooth.md +++ b/pages/common/pnmsmooth.md @@ -9,4 +9,4 @@ - Smooth out a PNM image using a convolution matrix of size width times height: -`pnmsmooth -width {{width}} -height {{height}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` +`pnmsmooth {{[-w|-width]}} {{width}} {{[-h|-height]}} {{height}} {{path/to/input.pnm}} > {{path/to/output.pnm}}` diff --git a/pages/common/pnmtoddif.md b/pages/common/pnmtoddif.md index d612126a94..7e1085c22b 100644 --- a/pages/common/pnmtoddif.md +++ b/pages/common/pnmtoddif.md @@ -9,4 +9,4 @@ - Explicitly specify the horizontal and vertical resolution of the output image: -`pnmtoddif -resolution {{horizontal_dpi}} {{vertical_dpi}} {{path/to/image.pnm}} > {{path/to/image.ddif}}` +`pnmtoddif {{[-r|-resolution]}} {{horizontal_dpi}} {{vertical_dpi}} {{path/to/image.pnm}} > {{path/to/image.ddif}}` diff --git a/pages/common/pnmtofiasco.md b/pages/common/pnmtofiasco.md index bcb5483c5c..d9582407f6 100644 --- a/pages/common/pnmtofiasco.md +++ b/pages/common/pnmtofiasco.md @@ -7,14 +7,14 @@ `pnmtofiasco {{path/to/file.pnm}} > {{path/to/file.fiasco}}` -- Specify the [i]nput files through a pattern: +- Specify the input files through a pattern: -`pnmtofiasco --image-name "{{img[01-09+1].pnm}}" > {{path/to/file.fiasco}}` +`pnmtofiasco {{[-i|--image-name]}} "{{img[01-09+1].pnm}}" > {{path/to/file.fiasco}}` - Specify the compression quality: -`pnmtofiasco --quality {{quality_level}} {{path/to/file.pnm}} > {{path/to/file.fiasco}}` +`pnmtofiasco {{[-q|--quality]}} {{quality_level}} {{path/to/file.pnm}} > {{path/to/file.fiasco}}` - Load the options to be used from the specified configuration file: -`pnmtofiasco --config {{path/to/fiascorc}} {{path/to/file.pnm}} > {{path/to/file.fiasco}}` +`pnmtofiasco {{[-f|--config]}} {{path/to/fiascorc}} {{path/to/file.pnm}} > {{path/to/file.fiasco}}` diff --git a/pages/common/pnmtopalm.md b/pages/common/pnmtopalm.md index 018d22e738..e86ca905b7 100644 --- a/pages/common/pnmtopalm.md +++ b/pages/common/pnmtopalm.md @@ -9,7 +9,7 @@ - Specify the color depth of the resulting bitmap: -`pnmtopalm -depth {{1|2|4|8|16}} {{path/to/file.pnm}} > {{path/to/file.palm}}` +`pnmtopalm {{[-dep|-depth]}} {{1|2|4|8|16}} {{path/to/file.pnm}} > {{path/to/file.palm}}` - Choose a compression method for the resulting bitmap: @@ -17,8 +17,8 @@ - Build a custom colormap and include it in the resulting bitmap: -`pnmtopalm -colormap {{path/to/file.pnm}} > {{path/to/file.palm}}` +`pnmtopalm {{[-c|-colormap]}} {{path/to/file.pnm}} > {{path/to/file.palm}}` - Specify the bitmap's density: -`pnmtopalm -density {{72|108|144|216|288}} {{path/to/file.pnm}} > {{path/to/file.palm}}` +`pnmtopalm {{[-den|-density]}} {{72|108|144|216|288}} {{path/to/file.pnm}} > {{path/to/file.palm}}` diff --git a/pages/common/pnmtopclxl.md b/pages/common/pnmtopclxl.md index 1fd9ec4834..8531bab972 100644 --- a/pages/common/pnmtopclxl.md +++ b/pages/common/pnmtopclxl.md @@ -9,8 +9,8 @@ - Specify the resolution of the image as well as the location of the page from the upper left corner of each image: -`pnmtopclxl -dpi {{resolution}} -xoffs {{x_offset}} -yoffs {{y_offset}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pclxl}}` +`pnmtopclxl -dpi {{resolution}} {{[-x|-xoffs]}} {{x_offset}} {{[-y|-yoffs]}} {{y_offset}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pclxl}}` - Generate a duplex printer stream for the specified paper format: -`pnmtopclxl -duplex {{vertical|horizontal}} -format {{letter|legal|a3|a4|a5|...}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pclxl}}` +`pnmtopclxl {{[-du|-duplex]}} {{vertical|horizontal}} {{[-fo|-format]}} {{letter|legal|a3|a4|a5|...}} {{path/to/input1.pnm path/to/input2.pnm ...}} > {{path/to/output.pclxl}}` diff --git a/pages/common/pnmtopng.md b/pages/common/pnmtopng.md index 1e06c2dc94..10fbc6a542 100644 --- a/pages/common/pnmtopng.md +++ b/pages/common/pnmtopng.md @@ -9,4 +9,4 @@ - Display version: -`pnmtopng -version` +`pnmtopng {{[-vers|-version]}}` diff --git a/pages/common/pnmtops.md b/pages/common/pnmtops.md index 5740f20326..6fe668f371 100644 --- a/pages/common/pnmtops.md +++ b/pages/common/pnmtops.md @@ -9,8 +9,8 @@ - Specify the dimensions of the output image in inches: -`pnmtops -imagewidth {{imagewidth}} -imageheight {{imageheight}} {{path/to/file.pnm}} > {{path/to/file.ps}}` +`pnmtops {{[-imagew|-imagewidth]}} {{imagewidth}} {{[-imageh|-imageheight]}} {{imageheight}} {{path/to/file.pnm}} > {{path/to/file.ps}}` - Specify the dimensions of the page the output image resides on in inches: -`pnmtops -width {{width}} -height {{height}} {{path/to/file.pnm}} > {{path/to/file.ps}}` +`pnmtops {{[-w|-width]}} {{width}} {{[-h|-height]}} {{height}} {{path/to/file.pnm}} > {{path/to/file.ps}}` diff --git a/pages/common/pnmtorle.md b/pages/common/pnmtorle.md index ef2ff4b23e..6df3c1b950 100644 --- a/pages/common/pnmtorle.md +++ b/pages/common/pnmtorle.md @@ -9,8 +9,8 @@ - Print PNM header information to `stdout`: -`pnmtorle -verbose {{path/to/input.pnm}} > {{path/to/output.rle}}` +`pnmtorle {{[-v|-verbose]}} {{path/to/input.pnm}} > {{path/to/output.rle}}` - Include a transparency channel in the output image in which every black pixel is set to fully transparent and every other pixel is set to fully opaque: -`pnmtorle -alpha {{path/to/input.pnm}} > {{path/to/output.rle}}` +`pnmtorle {{[-a|-alpha]}} {{path/to/input.pnm}} > {{path/to/output.rle}}` diff --git a/pages/common/pnmtosgi.md b/pages/common/pnmtosgi.md index 3e9a684d78..be2d3d1f53 100644 --- a/pages/common/pnmtosgi.md +++ b/pages/common/pnmtosgi.md @@ -13,4 +13,4 @@ - Write the specified string into the SGI image header's `imagename` field: -`pnmtosgi -imagename {{string}} {{path/to/input.pnm}} > {{path/to/output.sgi}}` +`pnmtosgi {{[-i|-imagename]}} {{string}} {{path/to/input.pnm}} > {{path/to/output.sgi}}` diff --git a/pages/common/pnmtoxwd.md b/pages/common/pnmtoxwd.md index d3608126dc..b835ce8442 100644 --- a/pages/common/pnmtoxwd.md +++ b/pages/common/pnmtoxwd.md @@ -9,8 +9,8 @@ - Produce the output in the DirectColor format: -`pnmtoxwd -directcolor {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}` +`pnmtoxwd {{[-d|-directcolor]}} {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}` - Set the color depth of the output to b bits: -`pnmtoxwd -pseudodepth {{b}} {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}` +`pnmtoxwd {{[-p|-pseudodepth]}} {{b}} {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}` diff --git a/pages/common/ppmntsc.md b/pages/common/ppmntsc.md index 872e0dec5c..21054f6d3c 100644 --- a/pages/common/ppmntsc.md +++ b/pages/common/ppmntsc.md @@ -9,11 +9,11 @@ - 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}}` +`ppmntsc {{[--p|--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}}` +`ppmntsc {{[--v|--verbose]}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}` - Output only legal/illegal/corrected pixels, set other pixels to black: diff --git a/pages/common/rasttopnm.md b/pages/common/rasttopnm.md index f6b3e574ce..ff796423d4 100644 --- a/pages/common/rasttopnm.md +++ b/pages/common/rasttopnm.md @@ -9,4 +9,4 @@ - Use the color map indices in the raster if they are color values: -`rasttopnm -index {{path/to/input.rast}} > {{path/to/output.pnm}}` +`rasttopnm {{[-i|-index]}} {{path/to/input.rast}} > {{path/to/output.pnm}}` diff --git a/pages/common/rawtopgm.md b/pages/common/rawtopgm.md index cd60b294e1..3205169c23 100644 --- a/pages/common/rawtopgm.md +++ b/pages/common/rawtopgm.md @@ -13,20 +13,20 @@ - Convert a raw greyscale image in which the pixels come bottom-first instead of top-first to a PGM image: -`rawtopgm {{width}} {{height}} -bottomfirst {{path/to/image.raw}} > {{path/to/output.pgm}}` +`rawtopgm {{width}} {{height}} {{[-bt|-bottomfirst]}} {{path/to/image.raw}} > {{path/to/output.pgm}}` - Ignore the first `n` bytes of the specified file: -`rawtopgm {{width}} {{height}} -headerskip {{n}} {{path/to/image.raw}} > {{path/to/output.pgm}}` +`rawtopgm {{width}} {{height}} {{[-h|-headerskip]}} {{n}} {{path/to/image.raw}} > {{path/to/output.pgm}}` - Ignore the last m bytes of each row in the specified file: -`rawtopgm {{width}} {{height}} -rowskip {{m}} {{path/to/image.raw}} > {{path/to/output.pgm}}` +`rawtopgm {{width}} {{height}} {{[-r|-rowskip]}} {{m}} {{path/to/image.raw}} > {{path/to/output.pgm}}` - Specify the maxval for the grey values in the input to be equal to `n`: -`rawtopgm {{width}} {{height}} -maxval {{n}} {{path/to/image.raw}} > {{path/to/output.pgm}}` +`rawtopgm {{width}} {{height}} {{[-m|-maxval]}} {{n}} {{path/to/image.raw}} > {{path/to/output.pgm}}` - Specify the number of bytes that represent each sample in the input and that the byte-sequence is to be interpreted as little-endian: -`rawtopgm {{width}} {{height}} -bpp {{1|2}} -littleendian {{path/to/image.raw}} > {{path/to/output.pgm}}` +`rawtopgm {{width}} {{height}} -bpp {{1|2}} {{[-l|-littleendian]}} {{path/to/image.raw}} > {{path/to/output.pgm}}` diff --git a/pages/common/rletopnm.md b/pages/common/rletopnm.md index d67bb9b13a..f87a9bdbaa 100644 --- a/pages/common/rletopnm.md +++ b/pages/common/rletopnm.md @@ -9,8 +9,8 @@ - Create a PGM image containing the RLE file's alpha channel: -`rletopnm -alphaout {{path/to/alpha_file.pgm}} {{path/to/input.rle}} > {{path/to/output.pnm}}` +`rletopnm {{[--a|--alphaout]}} {{path/to/alpha_file.pgm}} {{path/to/input.rle}} > {{path/to/output.pnm}}` - Operate in verbose mode and print the contents of the RLE header to `stdout`: -`rletopnm -verbose {{path/to/input.rle}} > {{path/to/output.pnm}}` +`rletopnm {{[--v|--verbose]}} {{path/to/input.rle}} > {{path/to/output.pnm}}` diff --git a/pages/common/sgitopnm.md b/pages/common/sgitopnm.md index 5f809e6036..fe3f5a5ace 100644 --- a/pages/common/sgitopnm.md +++ b/pages/common/sgitopnm.md @@ -9,8 +9,8 @@ - Display information about the SGI file: -`sgitopnm -verbose {{path/to/input.sgi}} > {{path/to/output.pnm}}` +`sgitopnm {{[-v|-verbose]}} {{path/to/input.sgi}} > {{path/to/output.pnm}}` - Extract channel n of the SGI file: -`sgitopnm -channel {{n}} {{path/to/input.sgi}} > {{path/to/output.pnm}}` +`sgitopnm {{[-c|-channel]}} {{n}} {{path/to/input.sgi}} > {{path/to/output.pnm}}` diff --git a/pages/common/tifftopnm.md b/pages/common/tifftopnm.md index 56c6ae40a3..8810f12b29 100644 --- a/pages/common/tifftopnm.md +++ b/pages/common/tifftopnm.md @@ -9,12 +9,12 @@ - Create a PGM file containing the alpha channel of the input image: -`tifftopnm -alphaout {{path/to/alpha_file.pgm}} {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}` +`tifftopnm {{[-a|-alphaout]}} {{path/to/alpha_file.pgm}} {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}` - Respect the `fillorder` tag in the input TIFF image: -`tifftopnm -respectfillorder {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}` +`tifftopnm {{[-r|-respectfillorder]}} {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}` - Print TIFF header information to `stderr`: -`tifftopnm -headerdump {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}` +`tifftopnm {{[-h|-headerdump]}} {{path/to/input_file.tiff}} > {{path/to/output_file.pnm}}` diff --git a/pages/common/winicontopam.md b/pages/common/winicontopam.md index d07f727ed4..4c627550ff 100644 --- a/pages/common/winicontopam.md +++ b/pages/common/winicontopam.md @@ -9,12 +9,12 @@ - Convert all images in the input file to PAM: -`winicontopam -allimages {{path/to/input_file.ico}} > {{path/to/output.pam}}` +`winicontopam {{[-al|-allimages]}} {{path/to/input_file.ico}} > {{path/to/output.pam}}` - Convert the n'th image in the input file to PAM: -`winicontopam -image {{n}} {{path/to/input_file.ico}} > {{path/to/output.pam}}` +`winicontopam {{[-i|-image]}} {{n}} {{path/to/input_file.ico}} > {{path/to/output.pam}}` - If the image(s) to be extracted contain graded transparency data and an AND mask, write the AND mask into the fifth channel of the output PAM file: -`winicontopam -andmasks {{path/to/input_file.ico}} > {{path/to/output.pam}}` +`winicontopam {{[-an|-andmasks]}} {{path/to/input_file.ico}} > {{path/to/output.pam}}` diff --git a/pages/common/xwdtopnm.md b/pages/common/xwdtopnm.md index a6d81f2965..564cf11f75 100644 --- a/pages/common/xwdtopnm.md +++ b/pages/common/xwdtopnm.md @@ -9,8 +9,8 @@ - Display information about the conversion process: -`xwdtopnm -verbose {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}` +`xwdtopnm {{[-v|-verbose]}} {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}` - Display the contents of the X11 header of the input file: -`xwdtopnm -headerdump {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}` +`xwdtopnm {{[-h|-headerdump]}} {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}`