Main Menu

Rotation on jpg file

Started by fcb38, October 27, 2020, 03:56:47 PM

Previous topic - Next topic

fcb38

Hello,

As suggested by STARGEEK, I have used Irfanview with the option "JPG Lossless Rotation" / "Auto rotate (according to Exif Orientation, if available)".
Everything is OK now. It seems than there is a compression because the file size changed. Not really important, I want to close this problem.
I'm not sure to have understand everything. I will have a look in the futur... perhaps.
Here is the code for the file rotated with Lossless option:


D:\Yvan\_SoftWare\Images\Exiftoolgui - portable>exiftool -a Original-irf.jpg
ExifTool Version Number         : 12.09
File Name                       : Original.jpg
Directory                       : .
File Size                       : 6.2 MB
File Modification Date/Time     : 2020:10:13 11:26:40+02:00
File Access Date/Time           : 2020:11:01 19:47:44+01:00
File Creation Date/Time         : 2020:11:01 19:47:32+01:00
File Permissions                : rw-rw-rw-
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
JFIF Version                    : 1.01
Resolution Unit                 : None
X Resolution                    : 1
Y Resolution                    : 1
Exif Byte Order                 : Little-endian (Intel, II)
Image Width                     : 3456
Image Height                    : 4624
Make                            : samsung
Camera Model Name               : SM-A715F
Orientation                     : Horizontal (normal)
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Software                        : A715FXXU3ATH8
Modify Date                     : 2020:10:13 10:26:40
Y Cb Cr Positioning             : Centered
Exposure Time                   : 1/1122
F Number                        : 1.8
Exposure Program                : Program AE
ISO                             : 32
Exif Version                    : 0220
Date/Time Original              : 2020:10:13 10:26:40
Create Date                     : 2020:10:13 10:26:40
Shutter Speed Value             : 1
Aperture Value                  : 1.8
Brightness Value                : 20.04
Exposure Compensation           : 0
Max Aperture Value              : 1.8
Metering Mode                   : Center-weighted average
Flash                           : No Flash
Focal Length                    : 5.2 mm
Color Space                     : sRGB
Exif Image Width                : 3456
Exif Image Height               : 4624
Exposure Mode                   : Auto
White Balance                   : Auto
Digital Zoom Ratio              : 1
Focal Length In 35mm Format     : 24 mm
Scene Capture Type              : Standard
Image Unique ID                 : A64QLMD01MM
Compression                     : JPEG (old-style)
Image Width                     : 3456
Thumbnail Length                : 5858
Thumbnail Offset                : 727
XMP Toolkit                     : Adobe XMP Core 5.1.0-jc003
Micro Video                     : 1
Micro Video Version             : 1
Micro Video Offset              : 4097910
Micro Video Presentation Timestamp Us: -1
Image Width                     : 3456
Image Height                    : 4624
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Aperture                        : 1.8
Image Size                      : 3456x4624
Megapixels                      : 16.0
Scale Factor To 35 mm Equivalent: 4.6
Shutter Speed                   : 1/1122
Thumbnail Image                 : (Binary data 5858 bytes, use -b option to extract)
Circle Of Confusion             : 0.007 mm
Field Of View                   : 73.7 deg
Focal Length                    : 5.2 mm (35 mm equivalent: 24.0 mm)
Hyperfocal Distance             : 2.32 m
Light Value                     : 13.5


Thank you very much.

StarGeek

Quote from: fcb38 on November 01, 2020, 01:55:23 PMIt seems than there is a compression because the file size changed.

The file hasn't been recompressed.  Only that the compression encoding has been optimized.  Think of it as if you zipped a large text file with fast compression vs maximum compression.  The data is the same size, but more computing power has been used to make it smaller.

I would also suggest that make sure the "Perfect transformation only" box is checked.  If you rotate an image in which the size is not a multiple of 8, then the edges would get dropped off.  This won't be a problem for images directly from a camera as they are always the correct size, but it would be a problem on an cropped image.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).