ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: Redline on February 02, 2016, 02:56:28 PM

Title: Lightroom fails to open samsung RAW after date shift in EXIF
Post by: Redline on February 02, 2016, 02:56:28 PM
Hi, first of all - thanks for this wonderful utility, it has saved me on so many occasions.

Recently I got a bunch of SRW files from Samsung NX300 mirrorless camera with incorrect date in EXIF. I downloaded the latest version of ExifTool (10.10) and proceeded with updating to correct date:

c:\exif_test>exiftool.exe -overwrite_original_in_place -P "-AllDates+=1:0:0 0" .
Warning: [minor] Entries in IFD0 were out of sequence. Fixed. - ./SAM_0053.SRW
    1 directories scanned
    1 image files updated


But when I try to import the updated file to the latest Lightroom 6.4 (Camera RAW 9.4) it shows me an exclamation mark in the corner of the picture "Lightroom has encountered problems reading this photo" and on the Develop tab - "The file appears to be unsupported or damaged". I don't have any other photoeditor handy to verify if the problem is localized to Lightroom.

As per FAQ i've tried to look at the tags before and after modification with "exiftool -a -G1 -s" , but I don't see much difference there apart from block of tags slightly rearranged
======== ./exiftool.exe
[ExifTool]      ExifToolVersion                 : 10.10
[System]        FileName                        : exiftool.exe
[System]        Directory                       : .
[System]        FileSize                        : 6.4 MB
[System]        FileModifyDate                  : 2016:01:22 10:33:08+03:00
[System]        FileAccessDate                  : 2016:02:02 21:42:52+03:00
[System]        FileCreateDate                  : 2016:02:02 21:42:52+03:00
[System]        FilePermissions                 : rw-rw-rw-
[File]          FileType                        : Win32 EXE
[File]          FileTypeExtension               : exe
[File]          MIMEType                        : application/octet-stream
[EXE]           MachineType                     : Intel 386 or later, and compatibles
[EXE]           TimeStamp                       : 2006:06:02 13:45:17+03:00
[EXE]           PEType                          : PE32
[EXE]           LinkerVersion                   : 6.0
[EXE]           CodeSize                        : 12288
[EXE]           InitializedDataSize             : 917504
[EXE]           UninitializedDataSize           : 0
[EXE]           EntryPoint                      : 0x354c
[EXE]           OSVersion                       : 4.0
[EXE]           ImageVersion                    : 0.0
[EXE]           SubsystemVersion                : 4.0
[EXE]           Subsystem                       : Windows command line
[EXE]           FileVersionNumber               : 10.1.0.0
[EXE]           ProductVersionNumber            : 10.1.0.0
[EXE]           FileFlagsMask                   : 0x003f
[EXE]           FileFlags                       : Debug
[EXE]           FileOS                          : Windows NT 32-bit
[EXE]           ObjectFileType                  : Executable application
[EXE]           FileSubtype                     : 0
[EXE]           LanguageCode                    : Process default
[EXE]           CharacterSet                    : Unicode
[EXE]           Comments                        : ExifTool EXE for Windows
[EXE]           CompanyName                     : Phil Harvey
[EXE]           FileDescription                 : Read and Write meta information
[EXE]           FileVersion                     : 10.1.0.0
[EXE]           InternalName                    : ExifTool
[EXE]           LegalCopyright                  : Copyright (c) 2003-2016, Phil Harvey
[EXE]           LegalTrademarks                 :
[EXE]           OriginalFileName                : exiftool(-k).exe
[EXE]           PrivateBuild                    :
[EXE]           ProductName                     : ExifTool
[EXE]           ProductVersion                  : 10.1.0.0
[EXE]           SpecialBuild                    :
[EXE]           BuildDate                       : 2016:01:22 10:30:33
[EXE]           BundledPerlVersion              : ActivePerl 5.8.7
[EXE]           HomePage                        : https://exiftool.org/
======== ./SAM_0053.SRW
[ExifTool]      ExifToolVersion                 : 10.10
[System]        FileName                        : SAM_0053.SRW
[System]        Directory                       : .
[System]        FileSize                        : 22 MB
[System]        FileModifyDate                  : 2013:07:03 21:10:28+03:00
[System]        FileAccessDate                  : 2016:02:02 22:26:31+03:00
[System]        FileCreateDate                  : 2016:02:02 22:26:31+03:00
[System]        FilePermissions                 : rw-rw-rw-
[File]          FileType                        : SRW
[File]          FileTypeExtension               : srw
[File]          MIMEType                        : image/x-samsung-srw
[File]          ExifByteOrder                   : Big-endian (Motorola, MM)
[IFD0]          Make                            : SAMSUNG
[IFD0]          Model                           : NX300
[IFD0]          Orientation                     : Horizontal (normal)
[IFD0]          ModifyDate                      : 2014:07:03 21:10:27
[SubIFD]        SubfileType                     : Full-resolution Image
[SubIFD]        XResolution                     : 350
[SubIFD]        YResolution                     : 350
[SubIFD]        ResolutionUnit                  : inches
[SubIFD]        JpgFromRawStart                 : 745038
[SubIFD]        JpgFromRawLength                : 2787712
[SubIFD]        YCbCrPositioning                : Co-sited
[SubIFD]        SubfileType                     : Full-resolution Image
[SubIFD]        XResolution                     : 350
[SubIFD]        YResolution                     : 350
[SubIFD]        ResolutionUnit                  : inches
[SubIFD]        ThumbnailOffset                 : 730860
[SubIFD]        ThumbnailLength                 : 14178
[SubIFD]        YCbCrPositioning                : Co-sited
[SubIFD1]       SubfileType                     : Full-resolution Image
[SubIFD1]       ImageWidth                      : 5546
[SubIFD1]       ImageHeight                     : 3714
[SubIFD1]       BitsPerSample                   : 12
[SubIFD1]       Compression                     : Samsung SRW Compressed
[SubIFD1]       StripOffsets                    : 3532750
[SubIFD1]       SamplesPerPixel                 : 3
[SubIFD1]       RowsPerStrip                    : 3714
[SubIFD1]       StripByteCounts                 : 19504288
[SubIFD1]       CFARepeatPatternDim             : 2 2
[SubIFD1]       CFAPattern2                     : 0 1 1 2
[ExifIFD]       ExposureTime                    : 1/50
[ExifIFD]       FNumber                         : 2.0
[ExifIFD]       ExposureProgram                 : Aperture-priority AE
[ExifIFD]       ISO                             : 2000
[ExifIFD]       ExifVersion                     : 0221
[ExifIFD]       DateTimeOriginal                : 2014:07:03 21:10:27
[ExifIFD]       ExposureCompensation            : 0
[ExifIFD]       MeteringMode                    : Multi-segment
[ExifIFD]       LightSource                     : Unknown
[ExifIFD]       Flash                           : No Flash
[ExifIFD]       FocalLength                     : 30.0 mm
[ExifIFD]       ColorSpace                      : sRGB
[ExifIFD]       ExifImageWidth                  : 5472
[ExifIFD]       ExifImageHeight                 : 3648
[ExifIFD]       ExposureMode                    : Unknown (3)
[ExifIFD]       WhiteBalance                    : Auto
[ExifIFD]       DigitalZoomRatio                : 1
[ExifIFD]       FocalLengthIn35mmFormat         : 46 mm
[ExifIFD]       SceneCaptureType                : Standard
[ExifIFD]       Contrast                        : Normal
[ExifIFD]       Saturation                      : Normal
[ExifIFD]       Sharpness                       : Normal
[Samsung]       MakerNoteVersion                : 0100
[Samsung]       DeviceType                      : High-end NX Camera
[Samsung]       SamsungModelID                  : Various Models (0x5001038)
[Samsung]       PictureWizardMode               : Retro
[Samsung]       PictureWizardColor              : 65535
[Samsung]       PictureWizardSaturation         : -4
[Samsung]       PictureWizardSharpness          : -4
[Samsung]       PictureWizardContrast           : -4
[Samsung]       CameraTemperature               : undef C
[Samsung]       RawCompressionMode              : 1
[Samsung]       FaceDetect                      : Off
[Samsung]       FaceRecognition                 : Off
[Samsung]       FaceName                        :
[Samsung]       FirmwareName                    : 1.40
[Samsung]       LensType                        : Samsung NX 30mm F2 Pancake
[Samsung]       LensFirmware                    : 01.22_02.22
[Samsung]       InternalLensSerialNumber        : 173900173385
[Samsung]       SensorAreas                     : 0 0 5632 3714 78 16 5526 3664
[Samsung]       ColorSpace                      : Adobe RGB
[Samsung]       SmartRange                      : Off
[Samsung]       ExposureCompensation            : 0
[Samsung]       ISO                             : 2500
[Samsung]       ExposureTime                    : 1/50
[Samsung]       FNumber                         : 2.1
[Samsung]       FocalLengthIn35mmFormat         : 4.9 mm
[Samsung]       EncryptionKey                   : 305 72 737 456 282 307 519 724 13 505 193
[Samsung]       WB_RGGBLevelsUncorrected        : 7392 4096 4096 8448
[Samsung]       WB_RGGBLevelsAuto               : 7392 4096 4096 8448
[Samsung]       WB_RGGBLevelsIlluminator1       : 384 4096 4096 701
[Samsung]       WB_RGGBLevelsIlluminator2       : 744 4096 4096 347
[Samsung]       WB_RGGBLevelsBlack              : 0 0 0 0
[Samsung]       ColorMatrix                     : 294 2 -8 2 248 -10 48 28 154
[Samsung]       ColorMatrixSRGB                 : 378 -102 -20 -28 328 -44 8 -100 348
[Samsung]       ColorMatrixAdobeRGB             : 244 36 -24 -26 320 -38 8 -72 320
[Samsung]       CbCrMatrixDefault               : 256 0 0 256
[Samsung]       CbCrMatrix                      : 233 235 -218 524
[Samsung]       CbCrGainDefault                 : 3791 4024
[Samsung]       CbCrGain                        : 3359 3640
[Samsung]       ToneCurveSRGBDefault            : 11 0 16 32 64 128 256 512 1024 2048 3072 4095 0 6 12 25 49 88 138 188 228 245 255
[Samsung]       ToneCurveAdobeRGBDefault        : 11 0 16 32 64 128 256 512 1024 2048 3072 4095 0 6 12 25 49 88 138 188 228 245 255
[Samsung]       ToneCurveSRGB                   : 11 0 16 32 64 128 256 512 1024 2048 3072 4095 0 6 12 25 49 88 138 188 228 245 255
[Samsung]       ToneCurveAdobeRGB               : 11 0 16 32 64 128 256 512 1024 2048 3072 4095 0 6 12 25 49 88 138 188 228 245 255
[PreviewIFD]    SubfileType                     : Full-resolution Image
[PreviewIFD]    XResolution                     : 0.8571495318
[PreviewIFD]    YResolution                     : 0.8800047104
[PreviewIFD]    ResolutionUnit                  : inches
[PreviewIFD]    PreviewImageStart               : 41654
[PreviewIFD]    PreviewImageLength              : 689074
[PreviewIFD]    YCbCrPositioning                : Co-sited
[Composite]     Aperture                        : 2.0
[Composite]     CFAPattern                      : [Red,Green][Green,Blue]
[Composite]     ImageSize                       : 5546x3714
[Composite]     JpgFromRaw                      : (Binary data 2787712 bytes, use -b option to extract)
[Composite]     Megapixels                      : 20.6
[Composite]     PreviewImage                    : (Binary data 689074 bytes, use -b option to extract)
[Composite]     ScaleFactor35efl                : 1.5
[Composite]     ShutterSpeed                    : 1/50
[Composite]     ThumbnailImage                  : (Binary data 14178 bytes, use -b option to extract)
[Composite]     WB_RGGBLevels                   : 7392 4096 4096 8448
[Composite]     BlueBalance                     : 2.0625
[Composite]     CircleOfConfusion               : 0.020 mm
[Composite]     FOV                             : 42.7 deg
[Composite]     FocalLength35efl                : 30.0 mm (35 mm equivalent: 46.0 mm)
[Composite]     HyperfocalDistance              : 22.96 m
[Composite]     LensID                          : Samsung NX 30mm F2 Pancake
[Composite]     LightValue                      : 3.0
[Composite]     RedBalance                      : 1.804688
======== ./SAM_0053_orig.SRW
[ExifTool]      ExifToolVersion                 : 10.10
[System]        FileName                        : SAM_0053_orig.SRW
[System]        Directory                       : .
[System]        FileSize                        : 22 MB
[System]        FileModifyDate                  : 2013:07:03 21:10:28+03:00
[System]        FileAccessDate                  : 2016:02:02 22:27:47+03:00
[System]        FileCreateDate                  : 2016:02:02 22:27:47+03:00
[System]        FilePermissions                 : rw-rw-rw-
[File]          FileType                        : SRW
[File]          FileTypeExtension               : srw
[File]          MIMEType                        : image/x-samsung-srw
[File]          ExifByteOrder                   : Big-endian (Motorola, MM)
[IFD0]          Make                            : SAMSUNG
[IFD0]          Model                           : NX300
[IFD0]          Orientation                     : Horizontal (normal)
[IFD0]          ModifyDate                      : 2013:07:03 21:10:27
[ExifIFD]       ExposureTime                    : 1/50
[ExifIFD]       FNumber                         : 2.0
[ExifIFD]       ExposureProgram                 : Aperture-priority AE
[ExifIFD]       ISO                             : 2000
[ExifIFD]       ExifVersion                     : 0221
[ExifIFD]       DateTimeOriginal                : 2013:07:03 21:10:27
[ExifIFD]       ExposureCompensation            : 0
[ExifIFD]       MeteringMode                    : Multi-segment
[ExifIFD]       LightSource                     : Unknown
[ExifIFD]       Flash                           : No Flash
[ExifIFD]       FocalLength                     : 30.0 mm
[ExifIFD]       ColorSpace                      : sRGB
[ExifIFD]       ExifImageWidth                  : 5472
[ExifIFD]       ExifImageHeight                 : 3648
[ExifIFD]       ExposureMode                    : Unknown (3)
[ExifIFD]       WhiteBalance                    : Auto
[ExifIFD]       DigitalZoomRatio                : 1
[ExifIFD]       FocalLengthIn35mmFormat         : 46 mm
[ExifIFD]       SceneCaptureType                : Standard
[ExifIFD]       Contrast                        : Normal
[ExifIFD]       Saturation                      : Normal
[ExifIFD]       Sharpness                       : Normal
[Samsung]       MakerNoteVersion                : 0100
[Samsung]       DeviceType                      : High-end NX Camera
[Samsung]       SamsungModelID                  : Various Models (0x5001038)
[Samsung]       PictureWizardMode               : Retro
[Samsung]       PictureWizardColor              : 65535
[Samsung]       PictureWizardSaturation         : -4
[Samsung]       PictureWizardSharpness          : -4
[Samsung]       PictureWizardContrast           : -4
[Samsung]       CameraTemperature               : undef C
[Samsung]       RawCompressionMode              : 1
[Samsung]       FaceDetect                      : Off
[Samsung]       FaceRecognition                 : Off
[Samsung]       FaceName                        :
[Samsung]       FirmwareName                    : 1.40
[Samsung]       LensType                        : Samsung NX 30mm F2 Pancake
[Samsung]       LensFirmware                    : 01.22_02.22
[Samsung]       InternalLensSerialNumber        : 173900173385
[Samsung]       SensorAreas                     : 0 0 5632 3714 78 16 5526 3664
[Samsung]       ColorSpace                      : Adobe RGB
[Samsung]       SmartRange                      : Off
[Samsung]       ExposureCompensation            : 0
[Samsung]       ISO                             : 2500
[Samsung]       ExposureTime                    : 1/50
[Samsung]       FNumber                         : 2.1
[Samsung]       FocalLengthIn35mmFormat         : 4.9 mm
[Samsung]       EncryptionKey                   : 305 72 737 456 282 307 519 724 13 505 193
[Samsung]       WB_RGGBLevelsUncorrected        : 7392 4096 4096 8448
[Samsung]       WB_RGGBLevelsAuto               : 7392 4096 4096 8448
[Samsung]       WB_RGGBLevelsIlluminator1       : 384 4096 4096 701
[Samsung]       WB_RGGBLevelsIlluminator2       : 744 4096 4096 347
[Samsung]       WB_RGGBLevelsBlack              : 0 0 0 0
[Samsung]       ColorMatrix                     : 294 2 -8 2 248 -10 48 28 154
[Samsung]       ColorMatrixSRGB                 : 378 -102 -20 -28 328 -44 8 -100 348
[Samsung]       ColorMatrixAdobeRGB             : 244 36 -24 -26 320 -38 8 -72 320
[Samsung]       CbCrMatrixDefault               : 256 0 0 256
[Samsung]       CbCrMatrix                      : 233 235 -218 524
[Samsung]       CbCrGainDefault                 : 3791 4024
[Samsung]       CbCrGain                        : 3359 3640
[Samsung]       ToneCurveSRGBDefault            : 11 0 16 32 64 128 256 512 1024 2048 3072 4095 0 6 12 25 49 88 138 188 228 245 255
[Samsung]       ToneCurveAdobeRGBDefault        : 11 0 16 32 64 128 256 512 1024 2048 3072 4095 0 6 12 25 49 88 138 188 228 245 255
[Samsung]       ToneCurveSRGB                   : 11 0 16 32 64 128 256 512 1024 2048 3072 4095 0 6 12 25 49 88 138 188 228 245 255
[Samsung]       ToneCurveAdobeRGB               : 11 0 16 32 64 128 256 512 1024 2048 3072 4095 0 6 12 25 49 88 138 188 228 245 255
[PreviewIFD]    SubfileType                     : Full-resolution Image
[PreviewIFD]    XResolution                     : 0.8571495318
[PreviewIFD]    YResolution                     : 0.8800047104
[PreviewIFD]    ResolutionUnit                  : inches
[PreviewIFD]    PreviewImageStart               : 41416
[PreviewIFD]    PreviewImageLength              : 689074
[PreviewIFD]    YCbCrPositioning                : Co-sited
[SubIFD]        SubfileType                     : Full-resolution Image
[SubIFD]        XResolution                     : 350
[SubIFD]        YResolution                     : 350
[SubIFD]        ResolutionUnit                  : inches
[SubIFD]        JpgFromRawStart                 : 745088
[SubIFD]        JpgFromRawLength                : 2787712
[SubIFD]        YCbCrPositioning                : Co-sited
[SubIFD]        SubfileType                     : Full-resolution Image
[SubIFD]        XResolution                     : 350
[SubIFD]        YResolution                     : 350
[SubIFD]        ResolutionUnit                  : inches
[SubIFD]        ThumbnailOffset                 : 730616
[SubIFD]        ThumbnailLength                 : 14178
[SubIFD]        YCbCrPositioning                : Co-sited
[SubIFD1]       SubfileType                     : Full-resolution Image
[SubIFD1]       ImageWidth                      : 5546
[SubIFD1]       ImageHeight                     : 3714
[SubIFD1]       BitsPerSample                   : 12
[SubIFD1]       Compression                     : Samsung SRW Compressed
[SubIFD1]       StripOffsets                    : 3547656
[SubIFD1]       SamplesPerPixel                 : 3
[SubIFD1]       RowsPerStrip                    : 3714
[SubIFD1]       StripByteCounts                 : 19504288
[SubIFD1]       CFARepeatPatternDim             : 2 2
[SubIFD1]       CFAPattern2                     : 0 1 1 2
[Composite]     Aperture                        : 2.0
[Composite]     CFAPattern                      : [Red,Green][Green,Blue]
[Composite]     ImageSize                       : 5546x3714
[Composite]     JpgFromRaw                      : (Binary data 2787712 bytes, use -b option to extract)
[Composite]     Megapixels                      : 20.6
[Composite]     PreviewImage                    : (Binary data 689074 bytes, use -b option to extract)
[Composite]     ScaleFactor35efl                : 1.5
[Composite]     ShutterSpeed                    : 1/50
[Composite]     ThumbnailImage                  : (Binary data 14178 bytes, use -b option to extract)
[Composite]     WB_RGGBLevels                   : 7392 4096 4096 8448
[Composite]     BlueBalance                     : 2.0625
[Composite]     CircleOfConfusion               : 0.020 mm
[Composite]     FOV                             : 42.7 deg
[Composite]     FocalLength35efl                : 30.0 mm (35 mm equivalent: 46.0 mm)
[Composite]     HyperfocalDistance              : 22.96 m
[Composite]     LensID                          : Samsung NX 30mm F2 Pancake
[Composite]     LightValue                      : 3.0
[Composite]     RedBalance                      : 1.804688
======== ./SRW.rar
[ExifTool]      ExifToolVersion                 : 10.10
[ExifTool]      Error                           : Error opening file
[System]        FileName                        : SRW.rar
[System]        Directory                       : .
    1 directories scanned
    4 image files read


Here is the archive with 2 raws - original and edited (45MB)

https://drive.google.com/file/d/0BwSJycJf6zHMS0QyRTBaSkQwV0U/view?usp=sharing

I'd highly appreciate any help with this problem
Title: Re: Lightroom fails to open samsung RAW after date shift in EXIF
Post by: Phil Harvey on February 05, 2016, 08:46:59 AM
Unfortunate.  You should report this to Adobe, since it may be their problem.  LR5 has no problem opening the edited SRW file.  I'll see if I can download a trial copy of LR6 to try to reproduce this to see if I can figure out what it doesn't like about this image.

- Phil