Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Digital Archaeology » Rotating Images in Linux
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Rotating Images in Linux [message #284920] Thu, 26 February 2015 13:51
CyberkNight is currently offline  CyberkNight
Messages: 1606
Registered: July 2012
Karma: 0
Senior Member
Occasionally I have need to extract image files from PDFs. For some reasons, these images are sometimes rotated by 90 or 180 degrees. Fortunately, there is an easy way in Linux, using ImageMagick, to fix this problem. To rotate all images in a directory saving the rotated images back to the original filename, issue a command similar to the following:

for file in *.png; do convert $file -rotate 90 $file; done


For more information on how to manipulate images from the command line using ImageMagick see: http://www.howtogeek.com/109369/how-to-quickly-resize-conver t-modify-images-from-the-linux-terminal/


  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Finding files by extension in Linux
Next Topic: Flash Motherboard BIOS on Linux PC With No Floppy
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Apr 20 02:44:17 EDT 2024

Total time taken to generate the page: 0.00255 seconds