Rotating images in Windows

iskoos

TPF Noob!
Joined
Nov 19, 2009
Messages
187
Reaction score
2
Location
Orlando, FL
Can others edit my Photos
Photos OK to edit
Whenever I try to rotate my images (from landscape to portrait) with window's picture and fax review program, it gives me a warning saying that rotating the image may permanently effect its quality.

Lately I am not doing it anymore because Canon's ZoomBrowser automatically show the images in portrait mode without rotating it but the question in my mind remains: Would the image quality be really effected if I rotate images with window's picture and fax viewer program?
 
I haven't noticed any difference.

I usually do all of that in Lightroom - but occasionally I'll just right-click it in it's folder and rotate that way.

I've never had any warnings pop up though...
 
... Would the image quality be really effected if I rotate images with window's picture and fax viewer program?

Yes. How much depends on the JPEG's quanlity setting.

As I understand it, neither Windows Preview or Windows Picture & Fax Viewer can edit the JPEGs EXIF data to alter any orientation flag. The rotate the image by rewriting the actual image data. This requires that the JPEG data be recreated. Since JPEG uses a lossy compression as part of its structure any regeneration of the JPEG will cause some loss in quality.

I generally avoid rotating JPEGs in these viewers. If the original JPEG's quality setting is high the loss can be minimal, but it is still present.
 
Rotations of other than 90 deg (or 180 or 270) are always destructive. 90 deg rotations can be loss-less, depending on file type and sophistication of the algorithm used. Rotating a JPG with windows viewer is lossy. You will most likely never notice the difference.
 
Yes, I am sure the loss will be minimal and I will never notice it. But the fact that I will lose something is enough for me to avoid using windows' internal program to rotate my images. I am still rotate some unimportant images but I will not do this for images that are important to me...

P.S. Windows will not warn you if you click on "Do not show this warning again." message once. This is probably what happened to those who don't see this warning message.
 
I'm not sure if I have ever checked the 'do not show me again' box or not...

It is rare that I rotate images outside of Lightroom. Usually, they are not my pictures (pictures from relatives who need to use my computer for whatever reason). I only shoot RAW, and all RAWs get rotated in LR, if required.
 
I was actually wondering this today........I was playing around and of course made copies but some images Windows gave me a warning and others it did not.


When I would rotate an image the file size went to 1.98 from 1.99

But when I rotated back it went back to 1.99 mb

Does that make sense?
 
Basically yes. Every time you use a lossy compression you throw away more of the data. Even with identical settings selected by the use each program has a LOT of options selected by the programmer to create a JPEG file. This means that Saving a Quality 12 file in Photoshop will not be the same as setting a 100% quality image in ACDSee, not to mention that the option of selecting even something as basic as quality is not even given in windows picture and fax viewer.

In that respect, opening an image in Photoshop and then saving it again will have the same effect but at least you are somewhat in control given the quality slider. The less voodoo in your workflow the better.

Rotations of other than 90 deg (or 180 or 270) are always destructive. 90 deg rotations can be loss-less, depending on file type and sophistication of the algorithm used. Rotating a JPG with windows viewer is lossy. You will most likely never notice the difference.

To extend: rotating a JPEG in any program is lossy.

Yes, I am sure the loss will be minimal and I will never notice it.

I used to think the same thing. Then I did a quick test. Wrote a script that would open an image save the image, and close the image, rinse repeat for 100 times. JPEG quality was cranked to maximum for the entire time. After a surprisingly small number of saves (5 or so) a significant quality drop was notable. After 10-20 (can't remember the number exactly) the image became outright corrupted.

Pretty strange for the same algorithm doing the same thing over and over again.

When I would rotate an image the file size went to 1.98 from 1.99

But when I rotated back it went back to 1.99 mb

Does that make sense?

I assume you mean it went back to 1.98mb. Yes it makes sense. Most algorithms are not directionally agnostic. e.g. a horizontal gradient may compress differently than a vertical gradient. JPEG divides the images into rectangular chunks. The mere act of rotating an image will mean each chunk is occupied by different data.
 
wouldn't the file size shrink though if there is less info in the file?

I though some programs did lossless rotation
 
No. The file size is determined entire by the JPEG settings. You can save an image as a horrible quality 1 JPEG that is tiny, but if you then open it and save it as a quality 12 JPEG again the file size will be huge again despite the original information lost.

The loss is not introduced in the rotation but in the re-saving. If you open a TIFF file and rotate it in Picture and Fax Viewer it would be lossless too. The other option is simply modifying the rotational bit in the ExIF data. This too is lossless, but it does not result in a re-write of the data. Instead software which is aware of the data will open it and rotate it straight away.

Example. JPEGs recorded by my camera vertically will have this bit set. If I open the file in an old copy of Picture viewer it will be horizontal. If I open it in Photoshop then the file will be displayed vertical. However if I then click file -> save as and save the file without making any changes to it, the old Picture viewer will see it vertically since photoshop will save it as it sees it. If I do this and save as a TIFF then the rotation was in effect lossless.
 
so windows picture and fax viewer is always bad? not only when it just shows you the warning?
 
so windows picture and fax viewer is always bad? not only when it just shows you the warning?
No, JPEG is bad because being a lossey format it discards some measure of image data each time it is saved, no matter what software you use to do the save.
 
Whenever I try to rotate my images (from landscape to portrait) with window's picture and fax review program, it gives me a warning saying that rotating the image may permanently effect its quality.

Lately I am not doing it anymore because Canon's ZoomBrowser automatically show the images in portrait mode without rotating it but the question in my mind remains: Would the image quality be really effected if I rotate images with window's picture and fax viewer program?

Download this. It's freeware.
 
Windows picture and fax viewer is bad when you use it to rotate an image in a lossy format like JPEG.
 
what is you rotate an image that is using meta data flags?
 

Most reactions

Back
Top