Skip Menu |

This queue is for tickets about the Image-ExifTool CPAN distribution.

Report information
The Basics
Id: 93489
Status: resolved
Worked: 20 min
Priority: 0/
Queue: Image-ExifTool

People
Owner: EXIFTOOL [...] cpan.org
Requestors: goldner_jeff [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Bug in Exiftool?
Date: Mon, 3 Mar 2014 08:44:54 -0800
To: <bug-Image-ExifTool [...] rt.cpan.org>
From: Jeff Goldner <goldner_jeff [...] hotmail.com>
Hi, I tried Exiftool 9.45 and 9.54 with the same results. The camera is a Sony a7R (ILCE-7R) and the lens is a Canon EF 24mm f2.8 IS mounted on a Metabones III adapter. Highlighted fields are wrong, not sure if the Metabones is messing them up? Let me know if you want the source file. Thanks. E:\pictures\2014\2014-03 Test Shots Canon 24mm>exiftool _DSC0357.ARW ExifTool Version Number : 9.54 File Name : _DSC0357.ARW Directory : . File Size : 35 MB File Modification Date/Time : 2014:03:01 15:04:14-08:00 File Access Date/Time : 2014:03:01 15:27:19-08:00 File Creation Date/Time : 2014:03:01 15:27:19-08:00 File Permissions : rw-rw-rw- File Type : 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 : 7392 Image Height : 4920 Bits Per Sample : 14 Compression : Sony ARW Compressed 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 Strip Offsets : 692736 Rows Per Strip : 4920 Strip Byte Counts : 36368640 Preview Image Start : 144034 Preview Image Length : 546861 Y Cb Cr Coefficients : 0.299 0.587 0.114 Y Cb Cr Positioning : Co-sited Exposure Time : 1/60 F Number : 4.0 Exposure Program : Aperture-priority AE ISO : 1000 Sensitivity Type : Recommended Exposure Index Recommended Exposure Index : 1000 Exif Version : 0230 Date/Time Original : 2014:03:01 15:04:14 Create Date : 2014:03:01 15:04:14 Components Configuration : Y, Cb, Cr, - Compressed Bits Per Pixel : 8 Brightness Value : 0.946875 Exposure Compensation : 0 Max Aperture Value : 2.8 Metering Mode : Multi-segment Light Source : Unknown Flash : Off, Did not fire Focal Length : 24.0 mm Rating : 0 Brightness : 0 Long Exposure Noise Reduction : Off High ISO Noise Reduction : Off HDR : Off; Uncorrected image WB Shift AB GM : 0 0 Face Info Offset : 94 Sony Date Time : 2014:03:01 15:04:14 Sony Image Width : 7360 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 : Auto Image Stabilization : Off Color Mode : Standard Full Image Size : 7360x4912 Preview Image Size : 1616x1080 File Format : ARW 2.3.1 Quality : RAW + JPEG Flash Exposure Compensation : 0 White Balance Fine Tune : 0 Sony Model ID : ILCE-7R Teleconverter : None Multi Frame Noise Reduction : Off Picture Effect : Off Soft Skin Effect : Off Vignetting Correction : Off Lateral Chromatic Aberration : Off Distortion Correction : Auto Lens Type : Canon EF 14mm f/2.8L II USM + Metabones Adapter Lens Spec : 24mm F2.8 OSS Auto Portrait Framed : No Focus Mode : AF-S AF Area Mode Setting : Flexible Spot Flexible Spot Position : 343 251 AF Point Selected : Auto Flash Level : Normal Release Mode : Normal Sequence Number : Single Anti-Blur : Off Intelligent Auto : Off White Balance : Auto Release Mode 2 : Normal Shot Number Since Power Up : 1 Sequence Image Number : 1 Sequence File Number : 1 Sequence Length : 1 file Camera Orientation : Horizontal (normal) Quality 2 : RAW + JPEG Sony Image Height : 4912 Ambient Temperature : 0 C AF Area Mode : Flexible Spot Sony Exposure Time 2 : 1/64 Sony Max Aperture Value : 2.8 Picture Effect 2 : Off Battery Temperature : 32.2 C Battery Level : 81% Lens Type 2 : Unknown (78) Release Mode 3 : Normal Stops Above Base ISO : 3.5 HDR Setting : Off WB RGB Levels : 503 255 504 Min Focal Length : 24.0 mm Max Focal Length : 24.0 mm Flash Status : No Flash present Image Count : 473 Sony Exposure Time : 1/64 Sony F Number : 4.0 Image Count 2 : 473 Sony Date Time 2 : 2014:03:01 23:04:14 Lens Mount : A-Mount Lens Format : Full-frame User Comment : Flashpix Version : 0100 Color Space : Uncalibrated Exif Image Width : 7360 Exif Image Height : 4912 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 : 24 mm Scene Capture Type : Standard Contrast : Normal Saturation : Normal Sharpness : Normal Lens Info : 24mm f/2.8 Lens Model : 24mm F2.8 OSS Gamma : 2.2 PrintIM Version : 0300 SR2 Sub IFD Offset : 49342 SR2 Sub IFD Length : 56958 SR2 Sub IFD Key : 0x44332211 Black Level : 512 512 512 512 WB RGGB Levels : 2012 1024 1024 2036 Color Matrix : 1406 -391 9 -42 1356 -290 22 -53 1055 WB RGB Levels Daylight : 2564 1024 1528 WB RGB Levels Cloudy : 2768 1024 1400 WB RGB Levels Tungsten : 1600 1024 2752 WB RGB Levels Flash : 2820 1024 1376 WB RGB Levels 4500K : 2320 1024 1720 WB RGB Levels Shade : 3040 1024 1260 WB RGB Levels Fluorescent : 2408 1024 2216 WB RGB Levels Fluorescent P1 : 2460 1024 1656 WB RGB Levels Fluorescent P2 : 2748 1024 1440 WB RGB Levels Fluorescent M1 : 1848 1024 2736 WB RGB Levels 8500K : 3192 1024 1192 WB RGB Levels 6000K : 2744 1024 1416 WB RGB Levels 3200K : 1784 1024 2388 WB RGB Levels 2500K : 1392 1024 3320 White Level : 15360 15360 15360 Subfile Type : Reduced-resolution image Make : SONY Camera Model Name : ILCE-7R Software : ILCE-7R v1.01 Modify Date : 2014:03:01 15:04:14 Thumbnail Offset : 38644 Thumbnail Length : 9132 Aperture : 4.0 Blue Balance : 1.988281 CFA Pattern : [Red,Green][Green,Blue] Image Size : 7392x4920 Lens ID : Canon EF 14mm f/2.8L II USM Preview Image : (Binary data 546861 bytes, use -b option to extract) Red Balance : 1.964844 Scale Factor To 35 mm Equivalent: 1.0 Shutter Speed : 1/60 Thumbnail Image : (Binary data 9132 bytes, use -b option to extract) Circle Of Confusion : 0.030 mm Field Of View : 73.7 deg Focal Length : 24.0 mm (35 mm equivalent: 24.0 mm) Hyperfocal Distance : 4.79 m Light Value : 6.6

Message body is not shown because it is too large.

Thanks for this report. Could you please post a sample image, or email it to me (phil at owl.phy.queensu.ca) so I can look into this? Thanks.
Thanks for the sample. The problem is that the Canon LensType for this lens is actually 0x01f7 (503), but the Metabones adapter truncates the upper byte when packing the code into the Sony metadata, so ExifTool reports the Canon lens corresponding to a LensType of 0x00f7 (247). It would be nice if ExifTool could use the LensSpec (which is correct for this lens) to determine if 0x0100 needs to be added to the LensType. I will look into this and implement a patch if practical. - Phil
Subject: Re: [rt.cpan.org #93489] Bug in Exiftool?
Date: Mon, 3 Mar 2014 18:55:52 +0000
To: "bug-Image-ExifTool [...] rt.cpan.org" <bug-Image-ExifTool [...] rt.cpan.org>
From: Jeff Goldner <goldner_jeff [...] hotmail.com>
Ok thanks. I’ll pass that info on to Metabones. Sent from Windows Mail From: bug-Image-ExifTool@rt.cpan.org Sent: ‎Monday‎, ‎March‎ ‎3‎, ‎2014 ‎10‎:‎43‎ ‎AM To: Jeff Goldner <URL: https://rt.cpan.org/Ticket/Display.html?id=93489 > Thanks for the sample. The problem is that the Canon LensType for this lens is actually 0x01f7 (503), but the Metabones adapter truncates the upper byte when packing the code into the Sony metadata, so ExifTool reports the Canon lens corresponding to a LensType of 0x00f7 (247). It would be nice if ExifTool could use the LensSpec (which is correct for this lens) to determine if 0x0100 needs to be added to the LensType. I will look into this and implement a patch if practical. - Phil
Wow, these guys are really responsive! Here is their email, with my response below: On 2014-03-04, at 5:30 AM, "Bo-Ming Tong" @metabones.com wrote: Hi Phil, We are pleasantly surprised to learn about the special support for Metabones adapters in the renowned ExifTool, in particular that the textual "Lens Type" field is supported. However, some lenses whose lens id is greater than 255 are not identified correctly because the lens ID is truncated to 8 bits. The rationale for the truncation by the Metabones Smart Adapter is to avoid collision with genuine Minolta/Sony lenses, which generally don't use the 0xEF prefix. Newer Canon lenses all have lens IDs which do not fit within 8 bits, so we would need to fix the truncation problem by making a change to the Metabones firmware (version 31, to be released by the end of March 2014) to support full 16-bit Canon lens IDs. The 16-bit Canon lens ID is simply added to 0xEF00. So, older lenses with Canon ID 00xx will have Sony ID EFxx, Canon 01xx will become Sony F0xx, and Canon 10xx will become Sony FFxx. There is a need for a separate lens ID for Metabones Speed Booster that is distinguishable from the regular glassless Smart Adapter, so that when the user apply lens-specific distortion/CA/vignetting/etc. correction based on lens ID, a different correction profile may be used for Speed Booster. The offset for Speed Booster is chosen be 0x7700. So, older lenses with Canon ID 00xx coupled with Speed Booster will have Sony ID 77xx, Canon 01xx will become Sony 78xx, and Canon 10xx will become Sony 87xx. Let me know if this makes sense! Any other suggestions on how to resolve this truncation issue are also very welcome. Thanks! -- Bo-Ming Tong Vancouver, Canada Metabones On 2014-03-04, at 7:26 AM, Phil Harvey wrote: Hi Bo-Ming, This is great, thanks for your great customer support! This all makes perfect sense, and I will add ExifTool support for the updated Smart Adapter firmware and Speed Booster lens ID's. - Phil
Subject: Re: [rt.cpan.org #93489] Bug in Exiftool?
Date: Tue, 4 Mar 2014 07:43:52 -0800
To: <bug-Image-ExifTool [...] rt.cpan.org>
From: Jeff Goldner <goldner_jeff [...] hotmail.com>
Yes. I also sent this in and they responded to me as well. The only thing is it’s a hassle to update the firmware as it's not a user process - you have to send in the adapters. And they typically charge about $50 :( I'll ask if they will waive that. And that you for the support. Show quoted text
-----Original Message----- From: Phil Harvey via RT Sent: Tuesday, March 04, 2014 4:30 AM To: goldner_jeff@hotmail.com Subject: [rt.cpan.org #93489] Bug in Exiftool? <URL: https://rt.cpan.org/Ticket/Display.html?id=93489 > Wow, these guys are really responsive! Here is their email, with my response below: On 2014-03-04, at 5:30 AM, "Bo-Ming Tong" @metabones.com wrote: Hi Phil, We are pleasantly surprised to learn about the special support for Metabones adapters in the renowned ExifTool, in particular that the textual "Lens Type" field is supported. However, some lenses whose lens id is greater than 255 are not identified correctly because the lens ID is truncated to 8 bits. The rationale for the truncation by the Metabones Smart Adapter is to avoid collision with genuine Minolta/Sony lenses, which generally don't use the 0xEF prefix. Newer Canon lenses all have lens IDs which do not fit within 8 bits, so we would need to fix the truncation problem by making a change to the Metabones firmware (version 31, to be released by the end of March 2014) to support full 16-bit Canon lens IDs. The 16-bit Canon lens ID is simply added to 0xEF00. So, older lenses with Canon ID 00xx will have Sony ID EFxx, Canon 01xx will become Sony F0xx, and Canon 10xx will become Sony FFxx. There is a need for a separate lens ID for Metabones Speed Booster that is distinguishable from the regular glassless Smart Adapter, so that when the user apply lens-specific distortion/CA/vignetting/etc. correction based on lens ID, a different correction profile may be used for Speed Booster. The offset for Speed Booster is chosen be 0x7700. So, older lenses with Canon ID 00xx coupled with Speed Booster will have Sony ID 77xx, Canon 01xx will become Sony 78xx, and Canon 10xx will become Sony 87xx. Let me know if this makes sense! Any other suggestions on how to resolve this truncation issue are also very welcome. Thanks! -- Bo-Ming Tong Vancouver, Canada Metabones On 2014-03-04, at 7:26 AM, Phil Harvey wrote: Hi Bo-Ming, This is great, thanks for your great customer support! This all makes perfect sense, and I will add ExifTool support for the updated Smart Adapter firmware and Speed Booster lens ID's. - Phil