JPEG Lossless Rotator

Free and simple software for turning digital photos to the correct orientation

When photos are taken, the camera or phone may be held in different positions, which means some photos need to be rotated to display correctly on the screen. For rotating photos, most image editors decode the JPEG photo, rotate the bitmap and then re-encode it back to JPEG. This process decreases the final image quality. Unlike those tools, JPEG Lossless Rotator does not recode the images and instead performs a special lossless block transformation, which helps to preserve the quality of the images. In addition, JPEG Lossless Rotator has a simple multilingual interface and is very easy to use even for inexperienced computer users.

JPEG Lossless Rotator, main window
JPEG Lossless Rotator, main window

Features:

Shell integration for rotating the photos with a right-click on a thumbnail
Shell integration: rotating photos with a right-click on a file name or thumbnail

Download

Visit SoftPerfect.com for high quality applications for Windows, macOS and Linux.

Download free JPEG Lossless Rotator 10.1 Installer (32 & 64 bit, exe), size 6.2M

Download free JPEG Lossless Rotator 10.1 Portable (32 bit, zip), size 2.6M

Download free JPEG Lossless Rotator 10.1 Portable (64 bit, zip), size 3.3M

Supported platforms

Windows 7, Windows 8, Windows 10 — 32 and 64 bit. Installation package and portable application options. If you want to use shell integration, you need to download the installer.

For Windows 2000, XP and Vista, JPEG Lossless Rotator version 9.2 is still available for downloading in the Version History below.

Licence

Freeware (for private non-commercial or educational use, including non-profit organisations).

Latest version

10.1, released 8 August 2022.

What's new: Added dark mode support. Improved HiDPI font size support.

Minor updates for v10.1:
7 October 2022: Updated the folder selection dialog that opens via the “Browse” button, to fix the issue where some folders were intermittently missing from the list.
20 September 2023: Fixed the minor bug where the file name highlighting was not updated after pressing the “Reset EXIF Orientation to Normal” button.
11 December 2023: Removed the “In the future, do not show me this dialog box” checkbox from the crop warning dialog, because it was stored by Windows in its registry and was difficult for the users to change later. Now the crop warning dialog is controlled only by Options – Display crop warning in JPEG Lossless Rotator.

Advice:

JPEG is a complex file format and some photo camera manufacturers may vary its structure. Therefore, it is advisable to test JPEG Lossless Rotator on a number of spare photos created by each of your photo cameras before using the application extensively. If you plan to use the rotated photos in any other programs or online services, it is also recommended to test the photos there: make sure the rotated photos can be opened, uploaded, edited, saved, etc.

User Manual

Getting started

Shell integration (right-click context menus) require installation. If you wish to use the shell integration, you should download JPEG Lossless Rotator's installer. Otherwise, you can use either portable or installer: all other functions are present in both versions.

If you are using the portable version, simply launch jpegr.exe file. If using the installer, install JPEG Lossless Rotator, and if you want to be able to rotate images via context menu, select Integrate JPEG Lossless Rotator with shell option during the installation.

Launch the program and use the Browse button to open a folder with .jpeg or .jpg images. After you selected the folder, the program will create thumbnails of the images. If Include subfolders option is checked, JPEG Lossless Rotator will create thumbnails for all .jpeg and .jpg files in the selected folder and all its subfolders. The image files that JPEG Lossless Rotator detected as being in an incorrect orientation will have their names highlighted in bold font.

Select a picture by clicking on its thumbnail preview (or a few pictures by dragging the mouse with the left button pressed or by clicking the thumbnails while holding Ctrl button pressed) and use one of the main buttons:

Rotate Left rotates the selected image(s) 90 degrees counter-clockwise.

Rotate Right rotates the selected image(s) 90 degrees clockwise.

Rotate 180° rotates the selected image(s) 180 degrees, i.e. turns them upside down. This button also contains a drop-down menu with Flip Horizontal and Flip Vertical actions.

Additional buttons

Recent Folder re-opens the folder that was opened before the last program closure.

Favorites adds and keeps up to 10 shortcuts to folders.

Automatic detects and rotates the images that can be turned to normal orientation automatically.

View Image opens full size image in your default picture viewer.

Delete deletes the image from the hard drive, USB flash drive, memory card, or other storage device where the image file resides.

Display EXIF opens the EXIF Properties window and displays the information contained in the EXIF tags of the image. Note: JPEG Lossless Rotator updates EXIF orientation tag after each rotation, however, once a normal value of the orientation tag is achieved, it remains normal regardless of subsequent rotations — this allows to achieve the correct orientation of the photos taken with cameras without an orientation sensor.

Options

The Options menu contains the following settings and functions:

Mouse clicks

Click the right mouse button on an image thumbnail for one of the following functions:

Hot keys

Some of the main menu buttons and right-click actions have associated keys for a faster work process:

EXIF orientation reset

The Reset EXIF Orientation to Normal button in the the EXIF Properties window (accessed via Display EXIF menu or E hot key) sets the orientation tag value to normal without rotating the image. This function takes the Keep file timestamp setting into account. Resetting the EXIF tag to normal may be helpful for achieving the correct display of the photos that appear to be oriented correctly but, for some reason, have an incorrect EXIF tag value; this often happens when photos are taken with the camera pointing down, for example when photographing paper documents lying on the table.

Shell integration (installer version only)

If during the installation you enabled the Integrate JPEG Lossless Rotator with shell option, JPEG Lossless Rotator is integrated into Windows shell and creates new context menu items. This allows you to right-click on a .jpeg or .jpg file and choose Lossless Rotate Right or Lossless Rotate Left menu item which will rotate the picture. This also works for a group of selected jpeg/jpg files.

JPEG Lossless Rotator shell integration for batch photo rotation
Shell integration: batch photo rotation

You can also automatically rotate all JPEG images in a folder by right-clicking the folder and choosing Automatically Rotate JPEG Images menu item. This command will also rotate images in all subfolders if you have the Include subfolders option checked in the main program window.

JPEG Lossless Rotator shell integration for folder processing
Shell integration: folder processing

Command line

JPEG Lossless Rotator allows you to use command line for image transformation. The command format is: <Path to jpegr.exe> jpegr.exe -[l|r|u|h|v] [-s] <filename>

You may need to enclose the filepaths in quotes if your jpegr.exe file path or image file path contain spaces.

Available flags:

JPEG Lossless Rotator command prompt
JPEG Lossless Rotator command prompt example.

You can also run Automatic Rotation function using command line. The command format is:
<Path to jpegr.exe> jpegr.exe -auto <Path to a folder with JPEG files>

To include all subfolders, type -autosub instead of -auto. The program outputs messages as message boxes (not in the command prompt), so you can use any command line, like “Run...” in the Windows Start menu, for example by typing "C:\Program Files\JPEG Lossless Rotator\jpegr.exe" -auto "D:\My Photos\". Paths with white spaces may need to be enclosed in double quotes.

The usual boring yet important disclaimer

This product is distributed “as is”. No warranty of any kind is expressed or implied. You use this software at your own risk. The author is not liable for data loss, damages, loss of profits or any other kind of loss incurred directly or indirectly while downloading, using or performing any other action in relation to this software. The author has no control over the quality, safety or integrity of any copy of this software published on any third-party site.

Questions, Answers, and Troubleshooting

Can JPEG Lossless Rotator fix problems with iPhone photos?

According to iPhone users and the Apple Support Communities (discussions.apple.com), JPEG Lossless Rotator does fix the problem of locked iPhone 4 and 4S photos. Photos taken in portrait mode with iPhone 4 and 4S do not auto-rotate when imported to Windows Seven, even if the user explicitly set the Windows import utility to auto-rotate them on import. Sometimes, the photos appear locked in the wrong orientation and cannot be subsequently rotated with Windows 7 built-in photo-editing tools. The problem results in error messages “Windows Photo Viewer can't save the changes to this picture because there's a problem with the picture's file properties”, “This photo can't be saved because of a problem with the photo's file properties”, or “You cannot rotate this image. The file might be in use or open in another program, or the file or folder might be read-only” in Windows 7 when the user tries to edit or rotate the photos taken with iPhone 4 or iPhone 4S and imported via USB to Windows 7 or synced via iCloud. If you are facing this problem, you can try JPEG Lossless Rotator and see if it fixes the issue for you.

Why doesn't automatic rotation do anything to my photos?

If your camera is equipped with an orientation sensor to detect its orientation (horizontal, 90°CW, or 90°CCW) when you hold it, it can embed that information in the photo's EXIF tag. During automatic rotation, JPEG Lossless Rotator reads this tag and rotates the photo accordingly.

Some cameras do not have the orientation sensor or have it switched off in the camera settings, which means they always put “Horizontal/Normal” value in the EXIF orientation tag. Such photos cannot be rotated automatically, because the orientation tag tells JPEG Lossless Rotator that the photo doesn't need to be rotated. You still can turn these photos to the correct orientation manually by using JPEG Lossless Rotator's menu or buttons.

To check why your photos are not rotated automatically, open JPEG Lossless Rotator's main window, select a photo that obviously needs rotation and was not taken with the camera lens pointing upwards or down. Then click the “Display EXIF” button and have a look what the “Orientation of the camera” line says. If you see “Top/left-hand side (Normal)”, then your camera either does not have the sensor, or the sensor needs to be switched on. Refer to your camera user manual to find out what settings switch its orientation sensor on.

Why does automatic rotation rotate correctly oriented photos to an incorrect position?

It can happen if the images were rotated earlier in another program and that program did not update the EXIF tags. Such images appear to look correctly, but their EXIF orientation tags still contain the original information, which tells JPEG Lossless Rotator that the images need to be rotated. As JPEG Lossless Rotator's automatic rotation relies on EXIF tags, it rotates the images according to what EXIF tells it, and as a result makes those pictures appear incorrectly oriented. To fix this discrepancy between the appearance of the images and the information in their EXIF tags created by another software, you can correct the EXIF information of those photos with the Reset EXIF Orientation to Normal function (accessed via Display EXIF button or E hot key).

Why does automatic JPEG Lossless Rotation work incorrectly with photos of book pages, while it works perfectly with photos of landscapes, buildings and people? Some photos of pages are rotated incorrectly, and if I rotate them manually, then my viewer shows them in a wrong orientation.

When you are taking photos of book pages with the book lying horizontally on a table, your camera lens is pointing down. In this position, the camera's orientation sensor may make a mistake in determining its orientation and assign an incorrect value to the photo's EXIF orientation tag. JPEG Lossless Rotator's automatic rotation is guided by the EXIF orientation tags, and if these tags have an incorrect value, the result of the automatic rotation is also incorrect.

When you rotate these photos manually, you can see that thumbnails of the photos in JPEG Lossless Rotator show the correct position. However, because the initial value of the EXIF orientation tag was incorrect, the value after the rotation becomes incorrect too. Now, if your viewing program has the ability to show photos according their EXIF information, it will use the incorrect EXIF data and display the photo in a wrong orientation, even though the photo is physically rotated correctly.

To achieve both the correct position of the photos and the correct EXIF information, you should:

  1. Apply JPEG Rotator's automatic rotation to the photos. Do not worry if some photos are rotated incorrectly. (Alternatively, you can use the “Reset EXIF Orientation to Normal” button in the “Display EXIF” menu instead of the automatic rotation if you want to edit just a few photos.)
  2. After that, manually rotate those incorrect photos to their correct position.

Now the photos are in their correct position and their EXIF tags are correct too.

Why do Windows thumbnails not change when I rotate photos using context menu in Windows explorer*, but when I open the photos in a viewer they are all rotated correctly?

If Windows thumbnails cache is turned on, Windows does not update its thumbnails unless the modification date of those files changes or you refresh Windows thumbnails manually. There are two ways to solve this problem:

Another culprit may be a third-party software. Some image editors do not rotate EXIF thumbnails (thumbnail image embedded into the photo's EXIF data), and if the photos were edited in another program before rotating them in JPEG Lossless Rotator, the EXIF thumbnails may already be desynchronised with the photos.

* Please note that there are two commonly used computer-related “explorers”: the Internet Explorer — the Internet browser, and the Windows Explorer — the Windows file manager that provides a graphical user interface for accessing the files. Here we are talking about the latter, the Windows Explorer.

Why does JPEG Lossless Rotator show orientation EXIF tag value as Right-hand side/top (Rotate 90 CW) when I see that my photo is on its left side?

The EXIF specification defines the orientation tag to indicate the orientation of the camera in relation to the captured scene. If the program shows the value Rotate 90 CW, it means that your camera was on its right side (in relation to the photographer when looking through the viewfinder) when you captured the photo. “Right-hand side/top” in this case means that the 0th row is on the compositional right-hand side of the image, and the 0th column is at the compositional top (in the normal position the 0th row is at the visual top of the image, and the 0th column is on the visual left-hand side).

Where are the original photos that I had before the rotation?

By default, JPEG Lossless Rotator rotates and overwrites the original photos. It does it for several reasons:

If you want to keep the original files intact, enable the Create backup image before rotation option in the JPEG Lossless Rotator's Options menu. Alternatively, you can manually make a copy of the files before the rotation.

Is the rotation by JPEG Lossless Rotator really lossless?

It is lossless for any .jpeg or .jpg file with width and height (number of pixels) divisible by 16 or 8 (depending on the digital camera or the way the image was created). Almost all common photo formats have width and height divisible by 16 (and therefore by 8 as well). For example, 3456x2304, 3072x2304, 2816x2112, 2560x1920, 2496x1664, 2048x1536, 1728x1152, 1600x1200, 1280x960, 1024x768, 800x600, 640x480, 320x240. If your camera creates photos with a size that is not divisible by 16, JPEG Lossless Rotator may not suit you.

Why some JPEG images cannot be rotated losslessly?

JPEG file structure does not allow lossless rotation of a file if its width and height are not divisible by 16 or 8 (depends on the digital camera or the way the image was created). If a file cannot be rotated losslessly and you haven't switched the crop warning messages off in the settings, JPEG Lossless Rotator will ask you whether you want to crop the image edges by up to 15 pixels to make lossless rotation possible.

If the program does crop an image, it crops the right and/or** bottom sides, which become the bottom and left sides if you rotate 90°CW, top and right sides if you rotate the images 90°CCW, and left and upper sides if you rotate 180 degrees.

** “and/or” depends on whether only the width, height, or both sides are not multiples of 16 or 8.

Why does the file size change? It was 1352 KB, and after rotation it became 1297 KB. What's happened? My photo is 1024x768, so it should be rotated losslessly.

A small JPEG file size change does not necessarily mean the same quality change. When you rotate your photo, JPEG blocks have a new position and the resulting file size may change (decrease or increase slightly).

I like your free software. What can I do for you?

You can help to make JPEG Lossless Rotator more widely used by recommending it to your friends and colleagues, or by adding comments and reviews about JPEG Lossless Rotator on the sites and social media you use. You can also make a donation to a worthy cause.

Version History

Ver­sion Release Date What's New
10.1 8 Aug 2022 Added dark mode support. Improved HiDPI font size support. Updated the folder selection dialog to fix the issue of some folders intermittently missing from the list. Fixed the minor bug where the file name highlighting was not updated after resetting EXIF orientation to normal.
10.0 30 Oct 2020 Added non-contiguous thumbnail selection via Ctrl+Click, and highlighting of pictures with non-normal EXIF orientation. Improved portability, uninstallation clean-up, and high-DPI support.
9.2 22 Dec 2014 Improved portability: added .ini file for keeping settings in the portable version. Added skipping of corrupt files during automatic rotation.
This is the last version that supports Windows 2000, XP and Vista. If you are still using these systems, you can download the compatible application files here: JPEG Lossless Rotator 9.2 (installer, 32 and 64 bit), JPEG Lossless Rotator 9.2 (portable, 32 bit), JPEG Lossless Rotator 9.2 (portable, 64 bit)
9.1 27 Mar 2013 Added the EXIF orientation reset feature.
9.0 28 Nov 2012 Added user prompt options for autorotation and the ability to open a picture in JPEG Lossless Rotator via the right-click context menu.
8.0 27 Sep 2011 Released 64-bit version. Added the folder tree and the ability to rename files.
7.0 30 Dec 2010 Improved thumbnail rendering. Added the option to keep copies of the original unrotated images.
6.0 1 May 2008 Added shell integration for automatic rotation in folders, UI customisation of font and background colours, and picture dimensions display in the status bar.
5.0 16 Oct 2006 Added batch rotation, delete function, “include subfolders” option, and multilingual interface.
... ... ...
1.0 2004 The first version of JPEG Lossless Rotator.

Comments

Write a Comment

This JPEG Lossless Rotator tool was a lifesaver.
"Automatic" oriented the photos according to EXIF rotation info - YEEES! I have searched everywhere for this option! Why do Windows not include this option already, I cannot understand.
This tool does ONE JOB and does it extremely well. No bloat. No mess. No adds. No cost...
I highly sympathize with your wish for donations to go to others, this tell all about what kind of person you are.
However I feel it could not hurt your integrity to include a "buy me a beer/coffee" option. (use PayPal it is really easy to setup)
Do not think of this as you are getting money, no no, think of it as an actual beer/coffee - would you say no to this, if we met in person, and I offered this to you of pure gratitude? No?
So take the money you will get from this beer/coffee option and USE it to actual buy something nice for yourself, once in a while, and know this is what grateful people wanted for you!
Thank you!

Greetings from Denmark, 21 March 2022

Thank you for the compliments and the beer/coffee offer. I truly appreciate it. As I have no PayPal account or any other widely-used way of accepting donations, I am happy to redirect such support to the worthy causes. But if we ever happen to meet in person, I won't say "no" :)

First of all, I like your tool very much.
But there is an issue. Many smartphone photos are taken vertically but shown horizontally. So I use JPEG Lossless Rotator to automatically rotate them. With all vertically-taken photos from my smartphone, the program asks the question: "<photo> cannot be rotated fully lossless. The image may be cropped by up to 15 pixels for lossless rotation. Do you want to rotate it anyway?" This means I have to click OK many times to get all those photos rotated. Not very "automatic".
Maybe you can check this out and/or add a checkbox to OK it once for all relevant photos. Please reply if you have a solution.

Han, NL, 13 April 2024

There is a stetting "Display crop warning" in the Options menu. If you uncheck it, JPEG Lossless Rotator will stop displaying that question.

Write a Comment

Source:  annystudio.com