From 6ae53a789f5d8c3563656f44f3ecbb044df9e05f Mon Sep 17 00:00:00 2001 From: ev-john <56849582+ev-john@users.noreply.github.com> Date: Fri, 16 Oct 2020 10:14:46 +0100 Subject: [PATCH] jpegtran: add page (#4695) --- pages/linux/jpegtran.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/linux/jpegtran.md diff --git a/pages/linux/jpegtran.md b/pages/linux/jpegtran.md new file mode 100644 index 000000000..9829065bd --- /dev/null +++ b/pages/linux/jpegtran.md @@ -0,0 +1,32 @@ +# jpegtran + +> Perform lossless transformation of JPEG files. +> More information: . + +- Mirror an image horizontally or vertically: + +`jpegtran -flip {{horizontal|vertical}} {{path/to/image.jpg}} > {{path/to/output.jpg}}` + +- Rotate an image 90, 180 or 270 degrees clockwise: + +`jpegtran -rotate {{90|180|270}} {{path/to/image.jpg}} > {{path/to/output.jpg}}` + +- Transpose the image across the upper left to lower right axis: + +`jpegtran -transpose {{path/to/image.jpg}} > {{path/to/output.jpg}}` + +- Transverse the image across the upper right to lower left axis: + +`jpegtran -transverse {{path/to/image.jpg}} > {{path/to/output.jpg}}` + +- Convert the image to grayscale: + +`jpegtran -grayscale {{path/to/image.jpg}} > {{path/to/output.jpg}}` + +- Crop the image to a rectangular region of width `W` and height `H` from the upper left corner, saving the output to a specific file: + +`jpegtran -crop {{W}}x{{H}} -outfile {{path/to/output.jpg}} {{path/to/image.jpg}}` + +- Crop the image to a rectangular region of width `W` and height `H`, starting at point `X` and `Y` from the upper left corner: + +`jpegtran -crop {{W}}x{{H}}+{{X}}+{{Y}} {{path/to/image.jpg}} > {{path/to/output.jpg}}`