Batch Image Rotation Based on Orientation

Posted on 2007-07-22
Last Modified: 2010-04-29
I have a lot of large TIFF files. between 10 and 100 MB, and about 1000 files. They are scanned images of technical drawings, and I need them all to be oriented in a landscape format. What would be the best program, preferable free, that would allow a batch conversion of the images to make it so that they were all in landscape format, but without having to manually select which images need to be rotated.

Question by:KevSC1
    LVL 69

    Expert Comment

    Hi KevSC1
    there's a few good selections here check them all out
    look at Batch It! Ultra v3.971 (Shareware)
    Batch It! Ultra is an automated batch imaging editor which allows you to resize, rename, rotate, slice, create thumbnail galleries, add captions, acquire images from scanner and more. It Load JPEG, BMP, TIFF, PCX, PNG, TGA, PBM, PGM, PPM, GIF, VDA,...
    LVL 38

    Expert Comment


    Do you know if there is EXIF data showing what orientation the image is in? Some digital cameras do indicate this, but since we're talking about scanned images, I am guessing not?

    If there's no data to show the orientation, there would be no automated approach. What I would suggest is having human eyeballs review image thumbnails, and move those needing rotation into a separate folder. Then you can run batch software on all in that folder, saving the results back to the original folder.


    Author Comment

    No, there is no EXIF data, I guess what I was looking for was something that would look at the width and the height of each image, and determine if it was tall or wide, and if it was tall it would then rotate it to a wide (landscape) format.

    LVL 38

    Expert Comment

    So, essentially you need conditional rotation, if the image is taller than it is wide, rotate 90 degrees?

    This could be done with ImageMagick (, using a little scripting. It could also be done with the GIMP and it's scripting language, script-fu (

    Unfortunately, I do not have sufficient scripting skills with either of these to be able to assist you in stepping through the process.
    LVL 8

    Expert Comment

    you can do this easily in Windows XP. View them in thumbnails view and select all the drawings and right click the drawings you will have the option rotate clockwise and rotate anticlockwise. In order to achieve this you should have Windows Picture and Fax installed on your machine.

    Let me know it works?

    LVL 38

    Expert Comment


    The asker said... " but without having to manually select which images need to be rotated."

    LVL 2

    Accepted Solution

    The requirement is a rotation conditional upon the diagram being in portrait orientation, when the correct orientation is landscape.    Adobe Acrobat will do this.   Under "Document - Rotate Pages" - you can select which orientation of page you want to rotate - you can select "portrait" pages only.

    Of course the next question is - does that work on TIF files?   Well, its a bit clumsy, but you could bundle up the files into convenient groups as multipage TIFs, import them into Acrobat - do your rotating - then export them again as individual TIF files.   Its messy, but it indicates the principle of the job, if you are not up to these clever scripting solutions proposed by others.

    Incidentally, if the TIF files are between 10 and 100Mb each, and they are presumably all in black and white like most drawings - they need Group 4 compression applied just to reduce their size and make them easier to move about and manipulate.  You can do that conversion on a batch basis also - with a program liike IrfanView.

    best regards

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    As each individual will have his or her personal way of processing a concept and turning it into a reality, this is simply a record of my own system as a designer. It may feel daunting or even overwhelming when developing a new idea for a project…
    PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
    We often encounter PDF files that are pure images, that is, they do not have text characters, but instead contain only raster graphics. The most common causes of this are document scanning software and faxing software/services that create image-only…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now