Project

General

Profile

Actions

Feature #749

closed
DC DC

Using ImageMagick To Fix Upside Down Digital Pictures

Feature #749: Using ImageMagick To Fix Upside Down Digital Pictures

Added by Daniel Curtis almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Workstation
Target version:
Start date:
02/21/2016
Due date:
% Done:

100%

Estimated time:
0:06 h
Spent time:

Description

I recently took some pictures with my phone, and when I went to upload them to a web service they were upside down for some reason. It turns out that the orientation of an image is stored in the exif data of a photo.

  • To start I made a directory for the fixed images:
    mkdir ~/fixed
    
  • To fix this, I stripped the exif data:
    mogrify -strip -path ~/fixed images/*.jpg
    
  • Then flipped the images
    mogrify -flip -flop ~/fixed/*.jpg
    
Actions

Also available in: PDF Atom