mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-29 21:35:32 +02:00
batch4
This commit is contained in:
parent
e1d44b5166
commit
e7e3c0b668
32 changed files with 56 additions and 56 deletions
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Display version:
|
||||
|
||||
`asciitopgm -version`
|
||||
`asciitopgm {{[-v|-version]}}`
|
||||
|
|
|
@ -13,4 +13,4 @@
|
|||
|
||||
- Display version:
|
||||
|
||||
`bioradtopgm -version`
|
||||
`bioradtopgm {{[-v|-version]}}`
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
- Report contents of the BMP header to `stderr`:
|
||||
|
||||
`bmptopnm -verbose {{path/to/file.bmp}}`
|
||||
`bmptopnm {{[-v|-verbose]}} {{path/to/file.bmp}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`bmptopnm -version`
|
||||
`bmptopnm {{[-v|-version]}}`
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Display version:
|
||||
|
||||
`brushtopbm -version`
|
||||
`brushtopbm {{[-v|-version]}}`
|
||||
|
|
|
@ -10,4 +10,4 @@
|
|||
|
||||
- Convert the image on the specified position of the third axis in the FITS file:
|
||||
|
||||
`fitstopnm -image {{z_position}} {{path/to/file.fits}} > {{path/to/output.pnm}}`
|
||||
`fitstopnm {{[-i|-image]}} {{z_position}} {{path/to/file.fits}} > {{path/to/output.pnm}}`
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Display version:
|
||||
|
||||
`giftopnm -version`
|
||||
`giftopnm {{[-v|-version]}}`
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
- Suppress all informational messages:
|
||||
|
||||
`hipstopgm -quiet`
|
||||
`hipstopgm {{[-q|-quiet]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`hipstopgm -version`
|
||||
`hipstopgm {{[-v|-version]}}`
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Display version:
|
||||
|
||||
`jpegtopnm -version`
|
||||
`jpegtopnm {{[-v|-version]}}`
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
|
||||
- Skip over `n` bytes when reading the file:
|
||||
|
||||
`macptopbm -extraskip {{n}} > {{path/to/output.pbm}}`
|
||||
`macptopbm {{[-e|-extraskip]}} {{n}} > {{path/to/output.pbm}}`
|
||||
|
||||
- Suppress all informational messages:
|
||||
|
||||
`macptopbm -quiet > {{path/to/output.pbm}}`
|
||||
`macptopbm {{[-q|-quiet]}} > {{path/to/output.pbm}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`macptopbm -version`
|
||||
`macptopbm {{[-v|-version]}}`
|
||||
|
|
|
@ -9,16 +9,16 @@
|
|||
|
||||
- Display information about the input file:
|
||||
|
||||
`palmtopnm -verbose {{path/to/file.palm}} > {{path/to/file.pnm}}`
|
||||
`palmtopnm {{[-v|-verbose]}} {{path/to/file.palm}} > {{path/to/file.pnm}}`
|
||||
|
||||
- Convert the n'th rendition of the image contained in the input file:
|
||||
|
||||
`palmtopnm -rendition {{n}} {{path/to/file.palm}} > {{path/to/file.pnm}}`
|
||||
`palmtopnm {{[-r|-rendition]}} {{n}} {{path/to/file.palm}} > {{path/to/file.pnm}}`
|
||||
|
||||
- Write a histogram of the colors in the input file to `stdout`:
|
||||
|
||||
`palmtopnm -showhist {{path/to/file.palm}} > {{path/to/file.pnm}}`
|
||||
`palmtopnm {{[-s|-showhist]}} {{path/to/file.palm}} > {{path/to/file.pnm}}`
|
||||
|
||||
- Output the transparent color of the input image if set:
|
||||
|
||||
`palmtopnm -transparent {{path/to/file.palm}}`
|
||||
`palmtopnm {{[-t|-transparent]}} {{path/to/file.palm}}`
|
||||
|
|
|
@ -9,12 +9,12 @@
|
|||
|
||||
- Set the horizontal alignment of the overlay:
|
||||
|
||||
`pamcomp -align {{left|center|right|beyondleft|beyondright}} -xoff {{x_offset}} {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}`
|
||||
`pamcomp {{[-ali|-align]}} {{left|center|right|beyondleft|beyondright}} {{[-x|-xoff]}} {{x_offset}} {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}`
|
||||
|
||||
- Set the vertical alignment of the overlay:
|
||||
|
||||
`pamcomp -valign {{top|middle|bottom|above|below}} -yoff {{y_offset}} {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}`
|
||||
`pamcomp {{[-v|-valign]}} {{top|middle|bottom|above|below}} {{[-y|-yoff]}} {{y_offset}} {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}`
|
||||
|
||||
- Set the opacity of the overlay:
|
||||
|
||||
`pamcomp -opacity {{0.7}} {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}`
|
||||
`pamcomp {{[-o|-opacity]}} {{0.7}} {{path/to/overlay.pam}} {{path/to/underlay.pam}} > {{path/to/output.pam}}`
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
|
||||
- Discard the specified number of columns/rows on each side of the image:
|
||||
|
||||
`pamcut -cropleft {{value}} -cropright {{value}} -croptop {{value}} -cropbottom {{value}} {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|
||||
`pamcut {{[-cropl|-cropleft]}} {{value}} {{[-cropr|-cropright]}} {{value}} {{[-cropt|-croptop]}} {{value}} {{[-cropb|-cropbottom]}} {{value}} {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|
||||
|
||||
- Keep only the columns between the specified columns (inclusively):
|
||||
|
||||
`pamcut -left {{value}} -right {{value}} {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|
||||
`pamcut {{[-l|-left]}} {{value}} {{[-ri|-right]}} {{value}} {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|
||||
|
||||
- Fill missing areas with black pixels if the specified rectangle does not entirely lie within the input image:
|
||||
|
||||
`pamcut -top {{value}} -bottom {{value}} -pad {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|
||||
`pamcut {{[-t|-top]}} {{value}} {{[-b|-bottom]}} {{value}} {{[-p|-pad]}} {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|
||||
|
|
|
@ -10,4 +10,4 @@
|
|||
|
||||
- Produce an image consisting of the input's odd-numbered rows:
|
||||
|
||||
`pamdeinterlace -takeodd {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|
||||
`pamdeinterlace {{[-takeo|-takeodd]}} {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
- Slice a Netpbm image such that the resulting tiles have the specified height and width:
|
||||
|
||||
`pamdice -outstem {{path/to/filename_stem}} -height {{value}} -width {{value}} {{path/to/input.ppm}}`
|
||||
`pamdice {{[-o|-outstem]}} {{path/to/filename_stem}} {{[-he|-height]}} {{value}} {{[-w|-width]}} {{value}} {{path/to/input.ppm}}`
|
||||
|
||||
- Make the produced pieces overlap by the specified amount horizontally and vertically:
|
||||
|
||||
`pamdice -outstem {{path/to/filename_stem}} -height {{value}} -width {{value}} -hoverlap {{value}} -voverlap {{value}} {{path/to/input.ppm}}`
|
||||
`pamdice {{[-o|-outstem]}} {{path/to/filename_stem}} {{[-he|-height]}} {{value}} {{[-w|-width]}} {{value}} {{[-ho|-hoverlap]}} {{value}} {{[-vo|-voverlap]}} {{value}} {{path/to/input.ppm}}`
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
|
||||
- Use the atkinson quantization method and the specified seed for a pseudo-random number generator:
|
||||
|
||||
`ppmditherbw -atkinson -randomseed {{1337}} {{path/to/image.pgm}} > {{path/to/file.pgm}}`
|
||||
`ppmditherbw {{[-a|-atkinson]}} {{[-r|-randomseed]}} {{1337}} {{path/to/image.pgm}} > {{path/to/file.pgm}}`
|
||||
|
||||
- Specify the thresholding value for quantization methods that perform some sort of thresholding:
|
||||
|
||||
`ppmditherbw -{{fs|atkinson|thresholding}} -value {{0.3}} {{path/to/image.pgm}} > {{path/to/file.pgm}}`
|
||||
`ppmditherbw -{{fs|atkinson|thresholding}} {{[-v|-value]}} {{0.3}} {{path/to/image.pgm}} > {{path/to/file.pgm}}`
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
- Enlarge the specified image by the specified factor:
|
||||
|
||||
`pamenlarge -scale {{n}} {{path/to/image.pam}} > {{path/to/output.pam}}`
|
||||
`pamenlarge {{[-s|-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}}`
|
||||
`pamenlarge {{[-x|-xscale]}} {{xn}} {{[-y|-yscale]}} {{yn}} {{path/to/image.pam}} > {{path/to/output.pam}}`
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
- Describe every image in each input file (as opposed to only the first image in each file) in a machine-readable format:
|
||||
|
||||
`pamfile -allimages -machine {{path/to/file}}`
|
||||
`pamfile {{[-a|-allimages]}} -machine {{path/to/file}}`
|
||||
|
||||
- Display a count on how many images the input files contain:
|
||||
|
||||
`pamfile -count {{path/to/file}}`
|
||||
`pamfile {{[-cou|-count]}} {{path/to/file}}`
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
- Use the specified filtering mechanism:
|
||||
|
||||
`pammixinterlace -filter {{linear|fir|ffmpeg}} {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|
||||
`pammixinterlace {{[-f|-filter]}} {{linear|fir|ffmpeg}} {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|
||||
|
||||
- Turn on adaptive filtering mode, i.e., only modify pixels that are obviously part of a comb pattern:
|
||||
|
||||
`pammixinterlace -adaptive {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|
||||
`pammixinterlace {{[-a|-adaptive]}} {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
|
||||
- Scale an image such that the result has the specified dimensions:
|
||||
|
||||
`pamscale -width {{width}} -height {{height}} {{path/to/input.pam}} > {{path/to/output.pam}}`
|
||||
`pamscale {{[-wid|-width]}} {{width}} {{[-h|-height]}} {{height}} {{path/to/input.pam}} > {{path/to/output.pam}}`
|
||||
|
||||
- Scale an image such that the result has the specified width, keeping the aspect ratio:
|
||||
|
||||
`pamscale -width {{width}} {{path/to/input.pam}} > {{path/to/output.pam}}`
|
||||
`pamscale {{[-wid|-width]}} {{width}} {{path/to/input.pam}} > {{path/to/output.pam}}`
|
||||
|
||||
- Scale an image such that its width and height is changed by the specified factors:
|
||||
|
||||
`pamscale -xscale {{x_factor}} -yscale {{y_factor}} {{path/to/input.pam}} > {{path/to/output.pam}}`
|
||||
`pamscale {{[-xsc|-xscale]}} {{x_factor}} {{[-ysc|-yscale]}} {{y_factor}} {{path/to/input.pam}} > {{path/to/output.pam}}`
|
||||
|
||||
- Scale an image such that it fits into the specified bounding box while preserving its aspect ratio:
|
||||
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Specify the tuple type name of the output PAM file (maximum of 255 characters):
|
||||
|
||||
`pamstack -tupletype {{tuple_type}} {{path/to/image1.pam path/to/image2.pam ...}} > {{path/to/output.pam}}`
|
||||
`pamstack {{[-t|-tupletype]}} {{tuple_type}} {{path/to/image1.pam path/to/image2.pam ...}} > {{path/to/output.pam}}`
|
||||
|
|
|
@ -10,4 +10,4 @@
|
|||
|
||||
- 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}}`
|
||||
`pamstretch {{[-x|-xscale]}} {{xn}} {{[-y|-yscale]}} {{yn}} {{path/to/image.pam}} > {{path/to/output.pam}}`
|
||||
|
|
|
@ -13,4 +13,4 @@
|
|||
|
||||
- Display version:
|
||||
|
||||
`pamtotga -version`
|
||||
`pamtotga {{[-v|-version]}}`
|
||||
|
|
|
@ -13,4 +13,4 @@
|
|||
|
||||
- Always produce a color TIFF image, even if the input image is greyscale:
|
||||
|
||||
`pamtotiff -color {{path/to/input_file.pam}} > {{path/to/output_file.tiff}}`
|
||||
`pamtotiff {{[-c|-color]}} {{path/to/input_file.pam}} > {{path/to/output_file.tiff}}`
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Specify a prefix string to be printed in the output UIL file:
|
||||
|
||||
`pamtouil -name {{uilname}} {{path/to/input.pnm|pam}} > {{path/to/output.uil}}`
|
||||
`pamtouil {{[-n|-name]}} {{uilname}} {{path/to/input.pnm|pam}} > {{path/to/output.uil}}`
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
- Encode images with resolutions smaller than t in the BMP format and all other images in the PNG format:
|
||||
|
||||
`pamtowinicon -pngthreshold {{t}} {{path/to/input_file.pam}} > {{path/to/output.ico}}`
|
||||
`pamtowinicon {{[-p|-pngthreshold]}} {{t}} {{path/to/input_file.pam}} > {{path/to/output.ico}}`
|
||||
|
||||
- Make all pixels outside the non-opaque area black:
|
||||
|
||||
`pamtowinicon -truetransparent {{path/to/input_file.pam}} > {{path/to/output.ico}}`
|
||||
`pamtowinicon {{[-t|-truetransparent]}} {{path/to/input_file.pam}} > {{path/to/output.ico}}`
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
|
||||
- Combine the images whose names match the `printf`-style filename expression. Assume a grid with a specific size:
|
||||
|
||||
`pamundice {{filename_%1d_%1a.ppm}} -across {{grid_width}} -down {{grid_height}} > {{path/to/output.ppm}}`
|
||||
`pamundice {{filename_%1d_%1a.ppm}} {{[-a|-across]}} {{grid_width}} {{[-d|-down]}} {{grid_height}} > {{path/to/output.ppm}}`
|
||||
|
||||
- Assume that the tiles overlap horizontally and vertically by the specified amount:
|
||||
|
||||
`pamundice {{filename_%1d_%1a.ppm}} -across {{x_value}} -down {{y_value}} -hoverlap {{value}} -voverlap {{value}} > {{path/to/output.ppm}}`
|
||||
`pamundice {{filename_%1d_%1a.ppm}} {{[-a|-across]}} {{x_value}} {{[-d|-down]}} {{y_value}} {{[-h|-hoverlap]}} {{value}} {{[-vo|-voverlap]}} {{value}} > {{path/to/output.ppm}}`
|
||||
|
||||
- Specify the images to be combined through a text file containing one filename per line:
|
||||
|
||||
`pamundice -listfile {{path/to/file.txt}} -across {{x_value}} -down {{y_value}} > {{path/to/output.ppm}}`
|
||||
`pamundice {{[-l|-listfile]}} {{path/to/file.txt}} {{[-a|-across]}} {{x_value}} {{[-d|-down]}} {{y_value}} > {{path/to/output.ppm}}`
|
||||
|
|
|
@ -13,4 +13,4 @@
|
|||
|
||||
- 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}}`
|
||||
`pbmclean {{[-m|-minneighbours]}} {{3}} {{path/to/image.pbm}} > {{path/to/output.pbm}}`
|
||||
|
|
|
@ -9,4 +9,4 @@
|
|||
|
||||
- Display version:
|
||||
|
||||
`pbmlife -version`
|
||||
`pbmlife {{[-v|-version]}}`
|
||||
|
|
|
@ -10,4 +10,4 @@
|
|||
|
||||
- Expand the generated mask by one pixel:
|
||||
|
||||
`pbmmask -expand {{path/to/image.pbm}} > {{path/to/output.pbm}}`
|
||||
`pbmmask {{[-r|-expand]}} {{path/to/image.pbm}} > {{path/to/output.pbm}}`
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
|
||||
- Use simple thresholding when reducing:
|
||||
|
||||
`pbmreduce -threshold {{n}} {{path/to/image.pbm}} > {{path/to/output.pbm}}`
|
||||
`pbmreduce {{[-t|-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}}`
|
||||
`pbmreduce {{[-v|-value]}} {{0.6}} {{n}} {{path/to/image.pbm}} > {{path/to/output.pbm}}`
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
|
||||
- Render text using a custom font supplied as a PBM file:
|
||||
|
||||
`pbmtext -font {{path/to/font.pbm}} "{{Hello World!}}" > {{path/to/output.pbm}}`
|
||||
`pbmtext {{[-f|-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}}`
|
||||
`echo "{{Hello\nWorld!}}" | pbmtext {{[-s|-space]}} {{3}} {{[-ls|-lspace]}} {{10}} > {{path/to/output.pbm}}`
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
|
||||
- Specify the desired left and top margins:
|
||||
|
||||
`pbmtextps -leftmargin {{70}} -topmargin {{162}} "{{Hello World!}}" > {{path/to/output.pbm}}`
|
||||
`pbmtextps {{[-l|-leftmargin]}} {{70}} {{[-t|-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}}`
|
||||
`pbmtextps {{[-du|-dump-ps]}} "{{Hello World!}}" > {{path/to/output.ps}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue