Bug with Sony A7R IV: LensFormat reports "Full-frame" instead of APS-C

Started by philW, July 04, 2023, 05:22:05 PM

Previous topic - Next topic

philW

Thanks for your work, Phil!

While scanning the EXIF date of my Sony photo files again after a few years, I noticed this bug with Sony A7R IV RAW files which were shot in APS-C mode (crop mode on):

$$info{'LensFormat'} should report "APS-C" but falsely indicates "Full-frame".

There is a new Sony EXIF tag "APS-C Size Capture" in the Sony A7R IV ARW file, which is either set to "On" or "Off". In this particular file case, "APS-C Size Capture" is correctly set to On. I guess that ExifTool is still relying on older tags to identify if APS-C mode is active.

Is there a way to programmatically access the Sony tag "APS-C Size Capture" via ExifTool from Perl, and how?

1) OS: MacOS Monterey
2) ExifTool version: 12.60
3) Console output from the command
exiftool -LensFormat /Volumes/Data/_DSC7161.ARW
Lens Format : Full-frame

StarGeek

Could you provide samples with and without the crop mode on in case Phil doesn't have any to check?
* 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).

philW

#2
There is also another new tag related to APS-C mode: "Scale Factor To 35 mm Equivalent: 1.5"

Here is the output of two files - one in FF mode and one in APS-C mode.


-------------------------------------------------------------
Sony A7R IV ARW in fullframe mode:

ExifTool Version Number        : 12.60
File Name                      : _DSC7186.JPG
Directory                      : /Volumes/Data
File Size                      : 30 MB
File Modification Date/Time    : 2023:07:04 23:57:38+02:00
File Access Date/Time          : 2023:07:05 00:20:16+02:00
File Inode Change Date/Time    : 2023:07:05 00:19:58+02:00
File Permissions                : -rwxrwxrwx
File Type                      : JPEG
File Type Extension            : jpg
MIME Type                      : image/jpeg
Exif Byte Order                : Little-endian (Intel, II)
Make                            : SONY
Camera Model Name              : ILCE-7RM4
Orientation                    : Horizontal (normal)
X Resolution                    : 350
Y Resolution                    : 350
Resolution Unit                : inches
Software                        : ILCE-7RM4 v1.20
Modify Date                    : 2023:07:04 23:57:39
Artist                          :
White Point                    : 0.313 0.329
Primary Chromaticities          : 0.64 0.33 0.21 0.71 0.15 0.06
Y Cb Cr Coefficients            : 0.299 0.587 0.114
Y Cb Cr Positioning            : Co-sited
Copyright                      :
Exposure Time                  : 1/500
F Number                        : 2.4
ISO                            : 100
Sensitivity Type                : Recommended Exposure Index
Recommended Exposure Index      : 100
Exif Version                    : 0231
Date/Time Original              : 2023:07:04 23:57:39
Create Date                    : 2023:07:04 23:57:39
Offset Time                    : +02:00
Offset Time Original            : +02:00
Offset Time Digitized          : +02:00
Components Configuration        : Y, Cb, Cr, -
Compressed Bits Per Pixel      : 4
Brightness Value                : 5.14609375
Exposure Compensation          : +0.3
Max Aperture Value              : 2.4
Metering Mode                  : Other
Light Source                    : Unknown
Flash                          : Off, Did not fire
Focal Length                    : 25.0 mm
Brightness                      : 0
Long Exposure Noise Reduction  : Off
High ISO Noise Reduction        : Off
HDR                            : Off; Uncorrected image
WB Shift AB GM                  : 1 0
WB Shift AB GM Precise          : 1.50 0.00
Face Info Offset                : 94
Sony Date Time                  : 2023:07:04 23:57:39
Sony Image Width                : 9504
Faces Detected                  : 0
Face Info Length                : 37
Meta Version                    : DC7303320222000
Creative Style                  : Standard
Color Temperature              : Auto
Color Compensation Filter      : 0
Scene Mode                      : Standard
Zone Matching                  : ISO Setting Used
Dynamic Range Optimizer        : Off
Image Stabilization            : On
Color Mode                      : Standard
Full Image Size                : 9504x6336
Preview Image Size              : 1616x1080
File Format                    : ARW 2.3.5
Flash Exposure Compensation    : 1
White Balance Fine Tune        : 0
White Balance                  : Auto
Sony Model ID                  : ILCE-7RM4
Multi Frame Noise Reduction    : Off
Picture Effect                  : Off
Soft Skin Effect                : Off
Vignetting Correction          : Auto
Lateral Chromatic Aberration    : Auto
Distortion Correction Setting  : Auto
Lens Type                      : E-Mount, T-Mount, Other Lens or no lens
Lens Spec                      : E 25mm F2.4
Auto Portrait Framed            : No
Flash Action                    : Did not fire
Electronic Front Curtain Shutter: On
Focus Mode                      : Manual
AF Area Mode Setting            : Flexible Spot
Flexible Spot Position          : 320 240
AF Point Selected              : n/a
AF Points Used                  : (none)
AF Tracking                    : Off
Focal Plane AF Points Used      : 0
Multi Frame NR Effect          : Normal
Focus Location                  : 9504 6336 4752 3168
Variable Low Pass Filter        : n/a
Priority Set In AWB            : Standard
Metering Mode 2                : Highlight
Exposure Standard Adjustment    : 0
RAW File Type                  : Uncompressed RAW
Quality                        : RAW + Extra Fine
Pixel Shift Info                : n/a
Flash Level                    : +3/3
Release Mode                    : Normal
Sequence Number                : Single
Anti-Blur                      : On (Shooting)
Sequence Image Number          : 1
Sequence File Number            : 1
Sequence Length                : 1 file
Camera Orientation              : Horizontal (normal)
Quality 2                      : RAW + JPEG
Sony Image Height              : 6336
Model Release Year              : 2018
ISO Setting                    : Auto
ISO Auto Min                    : 100
ISO Auto Max                    : 3200
AF Area Mode                    : Flexible Spot
Focus Position 2                : 255
Camera Temperature              : 29 C
Exposure Program                : Aperture-priority AE
Intelligent Auto                : Off
Sony ISO                        : 100
Base ISO                        : 100
Stops Above Base ISO            : 0
Sony Exposure Time 2            : 1/552
Sony Max Aperture Value        : 2.4
Sony Image Width Max            : 9568
Sony Image Height Max          : 6376
Picture Effect 2                : Off
Distortion Correction          : Applied
Distortion Corr Params          : 2 -2 -10 -21 -36 -54 -76 -98 -121 -143 -164 -181 -195 -203 -207 -205
Lens Zoom Position              : 0%
Vignetting Corr Params          : 0 0 0 480 1152 1856 2624 3424 4256 5168 6064 6880 7696 8560 9504 10320
Chromatic Aberration Corr Params: 690 672 654 636 618 600 582 564 545 529 509 482 448 409 364 291 -10 -89 -145 -175 -182 -158 -121 -79 -36 5 44 82 121 162 208 242
Battery Temperature            : 34.4 C
Battery Level                  : 103%
Lens Mount 2                    : Unknown
Camera E-mount Version          : 1.80
Release Mode 3                  : Normal
Self Timer                      : Off
Flash Mode                      : Flash Off
HDR Setting                    : Off
Picture Profile                : Gamma Still - Standard/Neutral (PP2)
WB RGB Levels                  : 474 256 688
Min Focal Length                : 25.0 mm
Distortion Corr Params Number  : 16 (Full-frame)
Shutter                        : Silent / Electronic (0 0 0)
Flash Status                    : No Flash present
Shutter Count                  : 3232
Sony Exposure Time              : 1/552
Sony F Number                  : 2.4
Shutter Count 2                : 3232
Release Mode 2                  : Normal
Internal Serial Number          : 42ff00009309
Lens Mount                      : E-mount
Lens Format                    : Full-frame
Lens Type 2                    : Zeiss Loxia 25mm F2.4
Distortion Corr Params Present  : Yes
Lens Spec Features              : E
Shutter Count 3                : 3232
APS-C Size Capture              : Off
User Comment                    :
Flashpix Version                : 0100
Color Space                    : Uncalibrated
Exif Image Width                : 9504
Exif Image Height              : 6336
Interoperability Index          : R03 - DCF option file (Adobe RGB)
Interoperability Version        : 0100
File Source                    : Digital Camera
Scene Type                      : Directly photographed
Custom Rendered                : Normal
Exposure Mode                  : Auto
Digital Zoom Ratio              : 1
Focal Length In 35mm Format    : 25 mm
Scene Capture Type              : Standard
Contrast                        : Low
Saturation                      : Normal
Sharpness                      : Hard
Lens Info                      : 25mm f/2.4
Lens Model                      : ZEISS Loxia 2.4/25
Gamma                          : 2.2
PrintIM Version                : 0300
Compression                    : JPEG (old-style)
Thumbnail Offset                : 39252
Thumbnail Length                : 3541
Rating                          : 0
MPF Version                    : 0100
Number Of Images                : 2
MP Image Flags                  : Dependent child image
MP Image Format                : JPEG
MP Image Type                  : Large Thumbnail (full HD equivalent)
MP Image Length                : 208213
MP Image Start                  : 29509632
Dependent Image 1 Entry Number  : 0
Dependent Image 2 Entry Number  : 0
Image Width                    : 9504
Image Height                    : 6336
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:2 (2 1)
Aperture                        : 2.4
Blue Balance                    : 2.6875
Image Size                      : 9504x6336
Lens ID                        : Zeiss Loxia 25mm F2.4
Megapixels                      : 60.2
Red Balance                    : 1.851563
Scale Factor To 35 mm Equivalent: 1.0
Shutter Speed                  : 1/500
Create Date                    : 2023:07:04 23:57:39+02:00
Date/Time Original              : 2023:07:04 23:57:39+02:00
Modify Date                    : 2023:07:04 23:57:39+02:00
Thumbnail Image                : (Binary data 3541 bytes, use -b option to extract)
Preview Image                  : (Binary data 208213 bytes, use -b option to extract)
Focus Distance 2                : inf
Circle Of Confusion            : 0.030 mm
Field Of View                  : 71.5 deg
Focal Length                    : 25.0 mm (35 mm equivalent: 25.0 mm)
Hyperfocal Distance            : 8.67 m
Light Value                    : 11.5


-------------------------------------------------------------
Sony A7R IV ARW in APS-C mode:

ExifTool Version Number        : 12.60
File Name                      : _DSC7161.ARW
Directory                      : /Volumes/Data
File Size                      : 53 MB
File Modification Date/Time    : 2023:06:25 14:50:12+02:00
File Access Date/Time          : 2023:07:04 22:12:16+02:00
File Inode Change Date/Time    : 2023:07:04 14:23:17+02:00
File Permissions                : -rwxrwxr-x
File Type                      : ARW
File Type Extension            : arw
MIME Type                      : image/x-sony-arw
Exif Byte Order                : Little-endian (Intel, II)
Image Description              :
Orientation                    : Horizontal (normal)
White Point                    : 0.313 0.329
Primary Chromaticities          : 0.64 0.33 0.21 0.71 0.15 0.06
Image Width                    : 6304
Image Height                    : 4180
Bits Per Sample                : 14
Compression                    : Uncompressed
Photometric Interpretation      : Color Filter Array
Samples Per Pixel              : 1
Planar Configuration            : Chunky
X Resolution                    : 350
Y Resolution                    : 350
Resolution Unit                : inches
CFA Repeat Pattern Dim          : 2 2
CFA Pattern 2                  : 0 1 1 2
Sony Raw File Type              : Sony Uncompressed 14-bit RAW
Sony Tone Curve                : 8000 10400 12900 14100
Strip Offsets                  : 696320
Rows Per Strip                  : 4180
Strip Byte Counts              : 52701440
Chromatic Aberration Correction : Auto
Distortion Correction          : Auto
Default Crop Origin            : 16 10
Default Crop Size              : 6240 4160
Sony Crop Top Left              : 0 10
Sony Crop Size                  : 6240 4160
Preview Image Start            : 135330
Preview Image Length            : 559975
Y Cb Cr Coefficients            : 0.299 0.587 0.114
Y Cb Cr Positioning            : Co-sited
Exposure Time                  : 1/500
F Number                        : 6.3
ISO                            : 160
Sensitivity Type                : Recommended Exposure Index
Recommended Exposure Index      : 160
Exif Version                    : 0231
Date/Time Original              : 2023:06:25 14:50:12
Create Date                    : 2023:06:25 14:50:12
Offset Time                    : +02:00
Offset Time Original            : +02:00
Offset Time Digitized          : +02:00
Components Configuration        : Y, Cb, Cr, -
Compressed Bits Per Pixel      : 16
Brightness Value                : 8.790625
Exposure Compensation          : +0.3
Max Aperture Value              : 5.6
Metering Mode                  : Other
Light Source                    : Unknown
Flash                          : Off, Did not fire
Focal Length                    : 400.0 mm
Rating                          : 0
Brightness                      : 0
Long Exposure Noise Reduction  : Off
High ISO Noise Reduction        : Off
HDR                            : Off; Uncorrected image
WB Shift AB GM                  : 1 0
WB Shift AB GM Precise          : 1.50 0.00
Face Info Offset                : 94
Sony Date Time                  : 2023:06:25 14:50:12
Sony Image Width                : 6240
Faces Detected                  : 0
Face Info Length                : 37
Meta Version                    : DC7303320222000
Creative Style                  : Standard
Color Temperature              : Auto
Color Compensation Filter      : 0
Scene Mode                      : Standard
Zone Matching                  : ISO Setting Used
Dynamic Range Optimizer        : Off
Image Stabilization            : On
Color Mode                      : Standard
Full Image Size                : 6240x4160
Preview Image Size              : 1616x1080
File Format                    : ARW 2.3.5
Flash Exposure Compensation    : 1
White Balance Fine Tune        : 0
White Balance                  : Auto
Sony Model ID                  : ILCE-7RM4
Multi Frame Noise Reduction    : Off
Picture Effect                  : Off
Soft Skin Effect                : Off
Vignetting Correction          : Auto
Lateral Chromatic Aberration    : Auto
Distortion Correction Setting  : Auto
Lens Type                      : E-Mount, T-Mount, Other Lens or no lens
Lens Spec                      : FE 140-400mm F5.6 OSS II
Auto Portrait Framed            : No
Flash Action                    : Did not fire
Electronic Front Curtain Shutter: On
Focus Mode                      : DMF
AF Area Mode Setting            : Flexible Spot
Flexible Spot Position          : 320 240
AF Point Selected              : n/a
AF Points Used                  : (none)
AF Tracking                    : Off
Focal Plane AF Points Used      : 0
Multi Frame NR Effect          : Normal
Focus Location                  : 6240 4160 3120 2080
Variable Low Pass Filter        : n/a
Priority Set In AWB            : Standard
Metering Mode 2                : Highlight
Exposure Standard Adjustment    : 0
RAW File Type                  : Uncompressed RAW
Quality                        : RAW + Extra Fine
Pixel Shift Info                : n/a
Flash Level                    : +3/3
Release Mode                    : Normal
Sequence Number                : Single
Anti-Blur                      : On (Shooting)
Sequence Image Number          : 1
Sequence File Number            : 1
Sequence Length                : 1 file
Camera Orientation              : Horizontal (normal)
Quality 2                      : RAW + JPEG
Sony Image Height              : 4160
Model Release Year              : 2018
ISO Setting                    : Auto
ISO Auto Min                    : 100
ISO Auto Max                    : 3200
Ambient Temperature            : 29 C
AF Area Mode                    : Flexible Spot
Focus Position 2                : 250
Camera Temperature              : 36 C
Exposure Program                : Aperture-priority AE
Intelligent Auto                : Off
Sony ISO                        : 171
Base ISO                        : 100
Stops Above Base ISO            : 0.8
Sony Exposure Time 2            : 1/512
Sony Max Aperture Value        : 5.8
Sony Image Width Max            : 6272
Sony Image Height Max          : 4180
Picture Effect 2                : Off
Lens Zoom Position              : 99%
Battery Temperature            : 37.8 C
Battery Level                  : 100%
Lens Mount 2                    : E-mount
Lens Type 3                    : Unknown (33086)
Camera E-mount Version          : 1.80
Lens E-mount Version            : 1.60
Lens Firmware Version          : Ver.02.000
Release Mode 3                  : Normal
Self Timer                      : Off
Flash Mode                      : Flash Off
HDR Setting                    : Off
Picture Profile                : Gamma Still - Standard/Neutral (PP2)
WB RGB Levels                  : 661 256 403
Min Focal Length                : 140.0 mm
Max Focal Length                : 400.0 mm
Distortion Corr Params Number  : 11 (APS-C)
Shutter                        : Silent / Electronic (0 0 0)
Flash Status                    : No Flash present
Shutter Count                  : 3226
Sony Exposure Time              : 1/512
Sony F Number                  : 6.5
Shutter Count 2                : 3226
Release Mode 2                  : Normal
Internal Serial Number          : 42ff00009309
Lens Mount                      : E-mount
Lens Format                    : Full-frame
Lens Type 2                    : Unknown (33086)
Distortion Corr Params Present  : Yes
Lens Spec Features              : FE OSS II
Shutter Count 3                : 3226
APS-C Size Capture              : On
User Comment                    :
Flashpix Version                : 0100
Color Space                    : Uncalibrated
Exif Image Width                : 6240
Exif Image Height              : 4160
Interoperability Index          : R03 - DCF option file (Adobe RGB)
Interoperability Version        : 0100
File Source                    : Digital Camera
Scene Type                      : Directly photographed
Custom Rendered                : Normal
Exposure Mode                  : Auto
Digital Zoom Ratio              : 1
Focal Length In 35mm Format    : 600 mm
Scene Capture Type              : Standard
Contrast                        : Low
Saturation                      : Normal
Sharpness                      : Hard
Lens Info                      : 140-400mm f/5.6
Lens Model                      : FE 70-200mm F2.8 GM OSS II + 2X Teleconverter
Gamma                          : 2.2
PrintIM Version                : 0300
SR2 Sub IFD Offset              : 53712
SR2 Sub IFD Length              : 42826
SR2 Sub IFD Key                : 0x44332211
Black Level                    : 512 512 512 512
WB RGGB Levels Auto            : 2648 1024 1024 1608
WB RGGB Levels                  : 2784 1024 1024 1528
Color Matrix                    : 1177 -211 91 -54 1267 -159 72 -232 1216
WB RGB Levels Daylight          : 2520 1024 1700
WB RGB Levels Cloudy            : 2728 1024 1560
WB RGB Levels Tungsten          : 1532 1024 3056
WB RGB Levels Flash            : 2768 1024 1520
WB RGB Levels 4500K            : 2264 1024 1916
WB RGB Levels Shade            : 3020 1024 1404
WB RGB Levels Fluorescent      : 2260 1024 2392
WB RGB Levels Fluorescent P1    : 2424 1024 1784
WB RGB Levels Fluorescent P2    : 2728 1024 1648
WB RGB Levels Fluorescent M1    : 1808 1024 2936
WB RGB Levels 8500K            : 3184 1024 1328
WB RGB Levels 6000K            : 2704 1024 1576
WB RGB Levels 3200K            : 1716 1024 2652
WB RGB Levels 2500K            : 1328 1024 3684
White Level                    : 15360 15360 15360
Vignetting Corr Params          : 11 0 64 0 0 96 736 1504 2176 2880 3520 4320 0 0 0 0 0
Chromatic Aberration Corr Params: 22 -256 -384 -512 -640 -640 -640 -640 -640 -768 -768 -768 -768 -640 -640 -640 -512 -512 -512 -512 -512 -384 -384 0 0 0 0 0 0 0 0 0 0
Distortion Corr Params          : 11 3 1 1 1 2 3 5 8 12 15 21 0 0 0 0 0
Subfile Type                    : Reduced-resolution image
Make                            : SONY
Camera Model Name              : ILCE-7RM4
Software                        : ILCE-7RM4 v1.20
Modify Date                    : 2023:06:25 14:50:12
Artist                          :
Thumbnail Offset                : 43534
Thumbnail Length                : 8843
Copyright                      :
Aperture                        : 6.3
Blue Balance                    : 1.492188
CFA Pattern                    : [Red,Green][Green,Blue]
Image Size                      : 6304x4180
Lens ID                        : FE 70-200mm F2.8 GM OSS II + 2X Teleconverter
Megapixels                      : 26.4
Preview Image                  : (Binary data 559975 bytes, use -b option to extract)
Red Balance                    : 2.71875
Scale Factor To 35 mm Equivalent: 1.5
Shutter Speed                  : 1/500
Create Date                    : 2023:06:25 14:50:12+02:00
Date/Time Original              : 2023:06:25 14:50:12+02:00
Modify Date                    : 2023:06:25 14:50:12+02:00
Thumbnail Image                : (Binary data 8843 bytes, use -b option to extract)
Focus Distance 2                : 948.1 m
Circle Of Confusion            : 0.020 mm
Field Of View                  : 3.4 deg
Focal Length                    : 400.0 mm (35 mm equivalent: 600.0 mm)
Hyperfocal Distance            : 1267.89 m
Light Value                    : 13.6

StarGeek

To clarify, can you provide sample files.  Exiftool output doesn't show the internal setup and formatting of the file that is needed to make changes to exiftool.
* 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).

philW

I can upload the fullframe JPG if there is a mechanism to do so. Can't find it in the Quick Reply section. The other file is RAW and too large. Even the JPG file is 29.7MB. Reducing file size via Photoshop is not possible since it stupidly deletes most of Sony's EXIF data.

JosR

Taking a picture in APS-C mode doesn't change the lens:
both lenses used (Loxia 25mm F2.4 and Sony 70-200mm F2.8 GM II) are full-frame lenses, so "Lens Format = Full-frame" is correct.
APS-CSizeCapture is the tag to use:
Exiftool.exe -APS-CSizeCapture file.jpg
will give you the value of this tag.

philW

Thanks, Jos, with APS-CSizeCapture the values are accurate. Case closed and please excuse the distraction ;)