Install exiftran by entering the following commands in the terminal:
sudo apt update sudo apt install exiftran
Description:
digital camera JPEG image transformer
exiftran is a command line utility to transform digital camera JPEG images. It can do lossless rotations like jpegtran, but unlike jpegtran it can process multiple images at once, and it cares about the Exif data: it can rotate images automatically by checking the Exif orientation tag, it updates the Exif information (image dimensions/orientation) if needed, and it also rotates the Exif thumbnail.
Homepage: https://www.kraxel.org/blog/linux/fbida/
Version: 2.10-2ubuntu1
Section: universe/graphics