I use the function exifread in a script and get the warning:
EXIFREAD will be removed in a future release. Please use IMFINFO instead.
However, the information I want from the exif tag is the Orientation of the camera, which appears as a field with exifread but doesn't seem to be gathered by imfinfo. In fact, imfinfo has significantly fewer (and different) fields (see below). Could anyone shed some light on this? Why is some functionality being removed with the soon to be deprecated exifread? Is there a function to get an exhaustive exif read out?
Thanks for your help!
imfinfo = Filename: '~' FileModDate: '07-Aug-2014 09:55:22' FileSize: 911121 Format: 'jpg' FormatVersion: '' Width: 4272 Height: 2848 BitDepth: 24 ColorType: 'truecolor' FormatSignature: '' NumberOfSamples: 3 CodingMethod: 'Huffman' CodingProcess: 'Sequential' Comment: {}
vs.
exiftag = SceneCaptureType: 0 WhiteBalance: 0 ExposureMode: 1 CustomRendered: 0 FocalPlaneResolutionUnit: 2 FocalPlaneYResolution: 4.7866e+03 FocalPlaneXResolution: 4.7204e+03 PixelYDimension: 4272 PixelXDimension: 2848 ColorSpace: 1 FlashpixVersion: '0100' SubSecTimeDigitized: '05' SubSecTimeOriginal: '05' SubSecTime: '05' UserComment: [1x255 char] FocalLength: 50 Flash: 16 MeteringMode: 5 ExposureBiasValue: 0 ApertureValue: 5.6250 ShutterSpeedValue: 5.6250 ComponentsConfiguration: [1 2 3 0] DateTimeDigitized: '2014:05:14 15:55:54' DateTimeOriginal: '2014:05:14 15:55:54' ExifVersion: '0230' ISOSpeedRatings: 100 ExposureProgram: 1 FNumber: 7.1000 ExposureTime: 0.0200 Copyright: '' YCbCrPositioning: 2 Artist: '' DateTime: '2014:06:04 17:20:19' Software: 'Microsoft Windows Photo Viewer 6.2.9200.16384' ResolutionUnit: 2 YResolution: 72 XResolution: 72 Orientation: 1 Model: 'Canon EOS 1100D' Make: 'Canon' Thumbnail: [1x1 struct]
Best Answer