Pages

Monday, March 25, 2013

rotate image linux how to

rotate image linux how to:

To rotate an image in linux, exiftool shall be used.


To Install exiftool, follow the commands.

Get the package from the following link.

wget http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-9.24.tar.gz

tar -zxvf   Image-ExifTool-9.24.tar.gz

cd Image-ExifTool-9.24

perl Makefile.PL  

make

make test

make install 


To rotate an Image by 90 degree, issue the following command.


exiftool -Orientation='Rotate 90 CW' Input_Image.jpg 


(or)


exiftool -Orientation=2  Input_Image.jpg 

Note that the Image will be rotated and saved in the same file.

No comments:

Post a Comment