Tuesday, December 25, 2018

Image Rotation in Bulk

We have been having problems with rotating images.  All the software so far rotate correctly on our system or at least it seems so but they all leave the metadata intact.  Here is how I rotated in bulk with the assumption that i grouped all the wrong ones that needed rotation of the same orientation.

Use exiftool to accomplish this task
Navigate to the directory of all the wrong images that needed rotation
cd needRotate90CW
# Remove all metadata from the images
exiftool -all= *.jpg# Rotate them 90 degrees counter clockwise and overwrite
exiftool -orientation="Rotate 90 CW" -overwrite_original *.jpg

The above seemed to work but did not change the metadata to the width and height.  It only rotated.

SOLUTION! 
I found the easiest method is to use Nautilus file manager and 
Nautilus Image Converter