Rotate iPhone images with ImageMagick
A good tip to remember when taking a photo with an iPhone or recording a video is “home button to the right and the picture will be right!”.
It is so easy to forget that rule when caught up in the moment. I recently needed to figure out how to resize and rotate without the need to download gimp or some other GUI. I settled imagemagick.
convert -rotate 90 -resize 512x682 input.jpeg output.jpeg
The code snippet above takes the input.jpeg file and rotates it clockwise by 90 degrees and then resizes it to about a third of the original size. Finally, the image is saved as output.jpeg.