mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-26 00:55:26 +02:00
batch3
This commit is contained in:
parent
7f290aebc8
commit
e1d44b5166
47 changed files with 103 additions and 103 deletions
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Display version:
|
||||
|
||||
`anytopnm -version`
|
||||
`anytopnm {{[-v|-version]}}`
|
||||
|
|
|
@ -18,4 +18,4 @@
|
|||
|
||||
- Display version:
|
||||
|
||||
`pbmtoascii -version`
|
||||
`pbmtoascii {{[-v|-version]}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
- Suppress all informational messages:
|
||||
|
||||
`pbmtogem -quiet`
|
||||
`pbmtogem {{[-q|-quiet]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`pbmtogem -version`
|
||||
`pbmtogem {{[-v|-version]}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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 ...}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Display version:
|
||||
|
||||
`pnmtopng -version`
|
||||
`pnmtopng {{[-vers|-version]}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
|
@ -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}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue