jpegtran

Perform lossless transformation of JPEG files.
More information.
jpegtran -flip {horizontal|vertical} {path/to/image.jpg} > {path/to/output.jpg}
jpegtran -rotate {90|180|270} {path/to/image.jpg} > {path/to/output.jpg}
jpegtran -transpose {path/to/image.jpg} > {path/to/output.jpg}
jpegtran -transverse {path/to/image.jpg} > {path/to/output.jpg}
jpegtran -grayscale {path/to/image.jpg} > {path/to/output.jpg}
jpegtran -crop {W}x{H} -outfile {path/to/output.jpg} {path/to/image.jpg}
jpegtran -crop {W}x{H}+{X}+{Y} {path/to/image.jpg} > {path/to/output.jpg}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY