Main Menu

Sigma MC-11

Started by JosR, May 23, 2016, 02:11:30 PM

Previous topic - Next topic

JosR

Hi Phil,

About your modified Minolta.pm of last Friday, I post my reply here as my email reply was not delivered:

Just replacing Minolta.pm 10.17 with your new version still gives:
[Sony]          0xb027 Lens Type                       : Unknown (19204)

But when I change
            my $lens = $Image::ExifTool::Sigma::sigmaLensTypes{$val - 0x4900};
into
            my $lens = $Image::ExifTool::Sigma::sigmaLensTypes{sprintf("%x",$val-0x4900)};

I get correctly:
[Sony]          0xb027 Lens Type                       : Sigma 12-24mm F4.5-5.6 DG HSM II + MC-11

So unless you have put this decimal-hex conversion in a new version of Sigma.pm, it should be done in Minolta.pm when calling Sigma.pm.

==================

Furthermore, for correct Composite:LensID, you will also need to modify Exif.pm, similar as for Metabones.
Inserting the following at line 4685 in Exif.pm appears to work:

            # test for Sigma MC-11 adapter with Sigma lens: upper limit cuts off two highest Sigma lenses,
            # but prevents conflict with old Minolta 25xxx and higher ID's
            if ($lensType >= 0x4900 and $lensType <= 0x590a) {
                require Image::ExifTool::Sigma;
                $lensType = sprintf("%x",$lensType-0x4900);
                $printConv = \%Image::ExifTool::Sigma::sigmaLensTypes;
                $lensTypePrt = $$printConv{$lensType} if $$printConv{$lensType};
            }


Regards,
Jos

Phil Harvey

Hi Jos,

Thanks!  I did make some modifications to Sigma.pm.

I've sent you my working version of the code.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).