Incorrect Sony RAW image size (dimensions)

Started by landy, August 22, 2016, 09:19:42 AM

Previous topic - Next topic

landy

Camera Sony ILCE-7M2, firmware 3.10, raw uncompressed file.
Exiftool 10.25

Composite ImageSize reported as 6048x4024, but real image size is 6000x4000, and this also displayed correctly in other tags:


$ exiftool -H DSC02001.ARW |egrep 'Width|Height|Size'

0x0100 Image Width                     : 6048
0x0101 Image Height                    : 4024
0x001c Sony Image Width                : 6000
0xb02b Full Image Size                 : 6000x4000
0xb02c Preview Image Size              : 1616x1080
0x0047 Sony Image Height               : n.a.
0xa002 Exif Image Width                : 6000
0xa003 Exif Image Height               : 4000
     - Image Size                      : 6048x4024


Full output:

$ exiftool -a -G1 -s DSC02001.ARW

[ExifTool]      ExifToolVersion                 : 10.25
[System]        FileName                        : DSC02001.ARW
[System]        Directory                       : .
[System]        FileSize                        : 47 MB
[System]        FileModifyDate                  : 2016:08:22 15:04:49+03:00
[System]        FileAccessDate                  : 2016:08:22 16:04:54+03:00
[System]        FileInodeChangeDate             : 2016:08:22 15:18:40+03:00
[System]        FilePermissions                 : rw-r--r--
[File]          FileType                        : ARW
[File]          FileTypeExtension               : arw
[File]          MIMEType                        : image/x-sony-arw
[File]          ExifByteOrder                   : Little-endian (Intel, II)
[IFD0]          SubfileType                     : Reduced-resolution image
[IFD0]          Compression                     : JPEG (old-style)
[IFD0]          ImageDescription                :
[IFD0]          Make                            : SONY
[IFD0]          Model                           : ILCE-7M2
[IFD0]          Orientation                     : Horizontal (normal)
[IFD0]          XResolution                     : 350
[IFD0]          YResolution                     : 350
[IFD0]          ResolutionUnit                  : inches
[IFD0]          Software                        : ILCE-7M2 v3.10
[IFD0]          ModifyDate                      : 2016:08:20 12:29:50
[IFD0]          PreviewImageStart               : 144034
[IFD0]          PreviewImageLength              : 407778
[IFD0]          YCbCrPositioning                : Co-sited
[SubIFD]        SubfileType                     : Full-resolution Image
[SubIFD]        ImageWidth                      : 6048
[SubIFD]        ImageHeight                     : 4024
[SubIFD]        BitsPerSample                   : 12
[SubIFD]        Compression                     : Uncompressed
[SubIFD]        PhotometricInterpretation       : Color Filter Array
[SubIFD]        SamplesPerPixel                 : 1
[SubIFD]        PlanarConfiguration             : Chunky
[SubIFD]        XResolution                     : 350
[SubIFD]        YResolution                     : 350
[SubIFD]        ResolutionUnit                  : inches
[SubIFD]        CFARepeatPatternDim             : 2 2
[SubIFD]        CFAPattern2                     : 0 1 1 2
[SubIFD]        SonyRawFileType                 : Sony Uncompressed 14-bit RAW
[SubIFD]        StripOffsets                    : 553472
[SubIFD]        RowsPerStrip                    : 4024
[SubIFD]        StripByteCounts                 : 48674304
[SubIFD]        ChromaticAberrationCorrParams   : 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[SubIFD]        DistortionCorrParams            : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[ExifIFD]       ExposureTime                    : 1/50
[ExifIFD]       FNumber                         : 7.1
[ExifIFD]       ExposureProgram                 : Manual
[ExifIFD]       ISO                             : 100
[ExifIFD]       SensitivityType                 : Recommended Exposure Index
[ExifIFD]       RecommendedExposureIndex        : 100
[ExifIFD]       ExifVersion                     : 0230
[ExifIFD]       DateTimeOriginal                : 2016:08:20 12:29:50
[ExifIFD]       CreateDate                      : 2016:08:20 12:29:50
[ExifIFD]       ComponentsConfiguration         : Y, Cb, Cr, -
[ExifIFD]       CompressedBitsPerPixel          : 16
[ExifIFD]       BrightnessValue                 : 6.05625
[ExifIFD]       ExposureCompensation            : 0
[ExifIFD]       MaxApertureValue                : 4.5
[ExifIFD]       MeteringMode                    : Multi-segment
[ExifIFD]       LightSource                     : Cloudy
[ExifIFD]       Flash                           : Off, Did not fire
[ExifIFD]       FocalLength                     : 141.0 mm
[ExifIFD]       UserComment                     :
[ExifIFD]       FlashpixVersion                 : 0100
[ExifIFD]       ColorSpace                      : sRGB
[ExifIFD]       ExifImageWidth                  : 6000
[ExifIFD]       ExifImageHeight                 : 4000
[ExifIFD]       FileSource                      : Digital Camera
[ExifIFD]       SceneType                       : Directly photographed
[ExifIFD]       CustomRendered                  : Normal
[ExifIFD]       ExposureMode                    : Manual
[ExifIFD]       WhiteBalance                    : Manual
[ExifIFD]       DigitalZoomRatio                : 1
[ExifIFD]       FocalLengthIn35mmFormat         : 141 mm
[ExifIFD]       SceneCaptureType                : Standard
[ExifIFD]       Contrast                        : Normal
[ExifIFD]       Saturation                      : Normal
[ExifIFD]       Sharpness                       : Normal
[ExifIFD]       LensInfo                        : 70-300mm f/3.8-5.4
[ExifIFD]       LensModel                       : Metabones 70-300/3.8-5.4 OIS
[Sony]          Rating                          : 0
[Sony]          Contrast                        : 0
[Sony]          Saturation                      : 0
[Sony]          Sharpness                       : 0
[Sony]          Brightness                      : 0
[Sony]          LongExposureNoiseReduction      : Off
[Sony]          HighISONoiseReduction           : Off
[Sony]          HDR                             : Off; Uncorrected image
[Sony]          WBShiftAB_GM                    : 0 0
[Sony]          FaceInfoOffset                  : 94
[Sony]          SonyDateTime                    : 2016:08:20 12:29:50
[Sony]          SonyImageHeight                 : 4000
[Sony]          SonyImageWidth                  : 6000
[Sony]          FacesDetected                   : 0
[Sony]          FaceInfoLength                  : 37
[Sony]          MetaVersion                     : DC7303320222000
[Sony]          CreativeStyle                   : Standard
[Sony]          ColorTemperature                : Auto
[Sony]          ColorCompensationFilter         : 0
[Sony]          SceneMode                       : Standard
[Sony]          ZoneMatching                    : ISO Setting Used
[Sony]          DynamicRangeOptimizer           : Auto
[Sony]          ImageStabilization              : Off
[Sony]          ColorMode                       : Standard
[Sony]          FullImageSize                   : 6000x4000
[Sony]          PreviewImageSize                : 1616x1080
[Sony]          FileFormat                      : ARW 2.3.1
[Sony]          Quality                         : RAW
[Sony]          FlashExposureComp               : 0
[Sony]          WhiteBalanceFineTune            : 0
[Sony]          WhiteBalance                    : Cloudy
[Sony]          SonyModelID                     : ILCE-7M2
[Sony]          MultiFrameNoiseReduction        : Off
[Sony]          PictureEffect                   : Off
[Sony]          SoftSkinEffect                  : Off
[Sony]          VignettingCorrection            : Auto
[Sony]          LateralChromaticAberration      : Auto
[Sony]          DistortionCorrectionSetting     : Off
[Sony]          LensType                        : Canon EF 90-300mm f/4.5-5.6 USM or Tamron Lens + Canon EF Adapter
[Sony]          LensSpec                        : 70-300mm F3.8-5.4 OSS
[Sony]          AutoPortraitFramed              : No
[Sony]          FlashAction                     : Did not fire
[Sony]          FocusMode                       : Manual
[Sony]          AFAreaModeSetting               : Center
[Sony]          FlexibleSpotPosition            : 0 0
[Sony]          AFZoneSelected                  : n/a
[Sony]          AFPointsUsed                    : (none)
[Sony]          FocalPlaneAFPointsUsed          : (none)
[Sony]          RAWFileType                     : Uncompressed RAW
[Sony]          ExposureMode                    : Manual
[Sony]          FlashLevel                      : Normal
[Sony]          ReleaseMode                     : Continuous
[Sony]          SequenceNumber                  : 3
[Sony]          Anti-Blur                       : Off
[Sony]          DynamicRangeOptimizer           : Standard
[Sony]          IntelligentAuto                 : Off
[Sony]          WhiteBalance                    : Cloudy
[Sony]          ReleaseMode2                    : Continuous
[Sony]          ShotNumberSincePowerUp          : 5
[Sony]          SequenceImageNumber             : 3
[Sony]          SequenceLength                  : Continuous
[Sony]          SequenceFileNumber              : 3
[Sony]          SequenceLength                  : Continuous
[Sony]          CameraOrientation               : Horizontal (normal)
[Sony]          Quality2                        : RAW
[Sony]          SonyImageHeight                 : n.a.
[Sony]          ModelReleaseYear                : 2015
[Sony]          AmbientTemperature              : 0 C
[Sony]          FocusMode                       : Manual
[Sony]          AFAreaMode                      : Manual
[Sony]          FocusPosition2                  : 190
[Sony]          CameraTemperature               : 27 C
[Sony]          LensZoomPosition                : 48%
[Sony]          SonyISO                         : 100
[Sony]          BaseISO                         : 100
[Sony]          StopsAboveBaseISO               : 0
[Sony]          SonyExposureTime2               : 1/51
[Sony]          ExposureTime                    : 1/50
[Sony]          SonyFNumber                     : 7.1
[Sony]          SonyMaxApertureValue            : 4.6
[Sony]          SequenceImageNumber             : 3
[Sony]          ReleaseMode2                    : Continuous
[Sony]          HighISONoiseReduction           : Low
[Sony]          LongExposureNoiseReduction      : Off
[Sony]          PictureEffect2                  : Off
[Sony]          ExposureProgram                 : Manual
[Sony]          CreativeStyle                   : Standard
[Sony]          Sharpness                       : 0
[Sony]          DistortionCorrection            : None
[Sony]          LensFormat                      : Full-frame
[Sony]          LensMount                       : A-mount
[Sony]          LensType                        : Canon EF 90-300mm f/4.5-5.6 USM or Tamron Lens + Canon EF Adapter
[Sony]          LensZoomPosition                : 48%
[Sony]          BatteryTemperature              : 39.4 C
[Sony]          BatteryLevel                    : 93%
[Sony]          LensMount2                      : A-mount (5)
[Sony]          LensType3                       : Metabones Canon EF Smart Adapter Mark IV
[Sony]          CameraE-mountVersion            : 1.50
[Sony]          LensE-mountVersion              : 1.08
[Sony]          LensFirmwareVersion             : Ver.52
[Sony]          ReleaseMode2                    : Continuous
[Sony]          DynamicRangeOptimizer           : Auto
[Sony]          ReleaseMode3                    : Continuous
[Sony]          ReleaseMode2                    : Continuous
[Sony]          SelfTimer                       : Off
[Sony]          FlashMode                       : Fill-flash
[Sony]          StopsAboveBaseISO               : 0
[Sony]          BrightnessValue                 : 6.05625
[Sony]          DynamicRangeOptimizer           : Auto
[Sony]          HDRSetting                      : Off
[Sony]          ExposureCompensation            : 0
[Sony]          PictureProfile                  : Standard/Neutral - Gamma Still (PP2)
[Sony]          PictureProfile                  : Standard/Neutral - Gamma Still (PP2)
[Sony]          PictureEffect2                  : Off
[Sony]          Quality2                        : RAW
[Sony]          MeteringMode                    : Multi-segment
[Sony]          ExposureProgram                 : Manual
[Sony]          WB_RGBLevels                    : 646 256 348
[Sony]          FocalLength                     : 141.0 mm
[Sony]          MinFocalLength                  : 70.0 mm
[Sony]          MaxFocalLength                  : 300.0 mm
[Sony]          SonyISO                         : 100
[Sony]          LensFormat                      : Full-frame
[Sony]          LensMount                       : A-mount
[Sony]          LensType                        : Canon EF 90-300mm f/4.5-5.6 USM or Tamron Lens + Canon EF Adapter
[Sony]          FlashStatus                     : Flash Inhibited
[Sony]          ImageCount                      : 1557
[Sony]          SonyFNumber                     : 7.1
[Sony]          ReleaseMode2                    : Continuous
[Sony]          ImageCount2                     : 1557
[Sony]          ReleaseMode2                    : Continuous
[Sony]          InternalSerialNumber            : 61ffe60a
[Sony]          LensMount                       : A-mount
[Sony]          LensFormat                      : Full-frame
[Sony]          LensType                        : Canon EF 90-300mm f/4.5-5.6 USM or Tamron Lens + Canon EF Adapter
[Sony]          LensSpecFeatures                : OSS
[InteropIFD]    InteropIndex                    : R98 - DCF basic file (sRGB)
[InteropIFD]    InteropVersion                  : 0100
[PrintIM]       PrintIMVersion                  : 0300
[SR2]           SR2SubIFDOffset                 : 49296
[SR2]           SR2SubIFDLength                 : 56958
[SR2]           SR2SubIFDKey                    : 0x44332211
[SR2SubIFD]     BlackLevel                      : 512 512 512 512
[SR2SubIFD]     WB_RGGBLevels                   : 2612 1024 1024 1384
[SR2SubIFD]     ColorMatrix                     : 1406 -391 9 -42 1356 -290 22 -53 1055
[SR2SubIFD]     WB_RGBLevelsDaylight            : 2424 1024 1508
[SR2SubIFD]     WB_RGBLevelsCloudy              : 2612 1024 1384
[SR2SubIFD]     WB_RGBLevelsTungsten            : 1516 1024 2708
[SR2SubIFD]     WB_RGBLevelsFlash               : 2664 1024 1360
[SR2SubIFD]     WB_RGBLevels4500K               : 2196 1024 1696
[SR2SubIFD]     WB_RGBLevelsShade               : 2872 1024 1244
[SR2SubIFD]     WB_RGBLevelsFluorescent         : 2276 1024 2184
[SR2SubIFD]     WB_RGBLevelsFluorescentP1       : 2328 1024 1636
[SR2SubIFD]     WB_RGBLevelsFluorescentP2       : 2596 1024 1424
[SR2SubIFD]     WB_RGBLevelsFluorescentM1       : 1752 1024 2692
[SR2SubIFD]     WB_RGBLevels8500K               : 3016 1024 1180
[SR2SubIFD]     WB_RGBLevels6000K               : 2592 1024 1396
[SR2SubIFD]     WB_RGBLevels3200K               : 1688 1024 2348
[SR2SubIFD]     WB_RGBLevels2500K               : 1320 1024 3264
[SR2SubIFD]     WhiteLevel                      : 15360 15360 15360
[SR2SubIFD]     ChromaticAberrationCorrParams   : 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[SR2SubIFD]     DistortionCorrParams            : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[SR2DataIFD]    ColorMode                       : Standard
[SR2DataIFD1]   ColorMode                       : Vivid
[SR2DataIFD2]   ColorMode                       : Neutral
[SR2DataIFD3]   ColorMode                       : Clear
[SR2DataIFD4]   ColorMode                       : Deep
[SR2DataIFD5]   ColorMode                       : Light
[SR2DataIFD6]   ColorMode                       : Portrait
[SR2DataIFD7]   ColorMode                       : Landscape
[SR2DataIFD8]   ColorMode                       : Sunset
[SR2DataIFD9]   ColorMode                       : Nightview
[SR2DataIFD10]  ColorMode                       : Autumnleaves
[SR2DataIFD11]  ColorMode                       : BW
[SR2DataIFD12]  ColorMode                       : Sepia
[IFD1]          SubfileType                     : Reduced-resolution image
[IFD1]          Compression                     : JPEG (old-style)
[IFD1]          ImageDescription                :
[IFD1]          Make                            : SONY
[IFD1]          Model                           : ILCE-7M2
[IFD1]          Orientation                     : Horizontal (normal)
[IFD1]          XResolution                     : 72
[IFD1]          YResolution                     : 72
[IFD1]          ResolutionUnit                  : inches
[IFD1]          Software                        : ILCE-7M2 v3.10
[IFD1]          ModifyDate                      : 2016:08:20 12:29:50
[IFD1]          ThumbnailOffset                 : 38732
[IFD1]          ThumbnailLength                 : 8878
[IFD1]          YCbCrPositioning                : Co-sited
[Composite]     Aperture                        : 7.1
[Composite]     BlueBalance                     : 1.351563
[Composite]     CFAPattern                      : [Red,Green][Green,Blue]
[Composite]     FocusDistance2                  : 16.69 m
[Composite]     ImageSize                       : 6048x4024
[Composite]     LensID                          : Metabones 70-300/3.8-5.4 OIS
[Composite]     Megapixels                      : 24.3
[Composite]     PreviewImage                    : (Binary data 407778 bytes, use -b option to extract)
[Composite]     RedBalance                      : 2.550781
[Composite]     ScaleFactor35efl                : 1.0
[Composite]     ShutterSpeed                    : 1/50
[Composite]     ThumbnailImage                  : (Binary data 8878 bytes, use -b option to extract)
[Composite]     CircleOfConfusion               : 0.030 mm
[Composite]     FOV                             : 14.6 deg
[Composite]     FocalLength35efl                : 141.0 mm (35 mm equivalent: 141.0 mm)
[Composite]     HyperfocalDistance              : 93.19 m
[Composite]     LightValue                      : 11.3


PS, LR and other image softwares also detect images as 6000x4000.

I know, that seems as incorrect data written by Sony camera into tags ImageWidth and ImageHeight.
But maybe somewhere error detect image size?

This is possible to use ExifImageWidth and ExifImageHeight for detect Composite ImageSize (probably for Sony cameras only)?

StarGeek

* 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).