ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Display Nikon MakerNotes
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

xequte

38615 Posts

Posted - Aug 24 2016 :  03:17:02  Show Profile  Reply

// Call after loading, with DisplayNikonMakerNotes( ImageEnView1.IO.Params );
procedure DisplayNikonMakerNotes(Params: TIOParams; DestListView: TListView);
var
  i:integer;
  tag:string;

  procedure AddTag(const desc:string);
  begin
    with DestListView.Items.Add do
    begin
      Caption := tag;
      SubItems.Append( desc );
    end;
  end;

begin
  DestListView.Items.Clear;

  if Data.Size = 0 then
    exit;
             
  // NIKON MAKER NOTE
  // Source: http://www.tawbaware.com/990exif.htm

  tag := 'Color mode';
  AddTag( Trim( Params.EXIF_MakerNote.GetString(3)));

  tag := 'Image quality setting';
  AddTag( Trim( Params.EXIF_MakerNote.GetString(4)));

  tag := 'White balance';
  AddTag( Trim( Params.EXIF_MakerNote.GetString(5)));

  tag := 'Image sharpening setting';
  AddTag( Trim( Params.EXIF_MakerNote.GetString(6)));

  tag := 'Focus mode';
  AddTag( Trim( Params.EXIF_MakerNote.GetString(7)));

  tag := 'Flash setting';
  AddTag( Trim( Params.EXIF_MakerNote.GetString(8)));

  tag := 'ISO selection';
  AddTag( Trim( Params.EXIF_MakerNote.GetString(15)));

  tag := 'Image adjustment setting';
  AddTag( Trim( Params.EXIF_MakerNote.GetString(128)));

  tag := 'Auxiliary lens (adapter)';
  AddTag( Trim( Params.EXIF_MakerNote.GetString(130)));

  tag := 'Manual focus distance';
  AddTag( FloatToStr( Params.EXIF_MakerNote.GetRational(133)));

  tag := 'Digital zoom setting';
  AddTag( FloatToStr( Params.EXIF_MakerNote.GetRational(134)));
end;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com

jenswahl

Germany
71 Posts

Posted - Aug 31 2016 :  10:28:03  Show Profile  Reply
Hello Nigel,

I tested it with photos from a D7000 and a D5100, but all times the Exif_MakerNotes.Data.Size were zero. Another program (PhotoMe) displays the Makernotes exactly. What was wrong?

Jens
Go to Top of Page

xequte

38615 Posts

Posted - Aug 31 2016 :  17:53:33  Show Profile  Reply
Hi Jens

Please email me the files you are testing.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

jenswahl

Germany
71 Posts

Posted - Sep 01 2016 :  01:47:12  Show Profile  Reply
Hello Nigel,

I sent you two images to your mail address.

Jens
Go to Top of Page

xequte

38615 Posts

Posted - Sep 05 2016 :  00:45:22  Show Profile  Reply
Hi Jens

Actually, in reviewing the code, I realize we avoid loading the maker notes when they are huge (e.g. your file as 26,000 tags), because they are seldom used so add unnecessary delay.

I'll look into a better way to handle this for a later update.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

jenswahl

Germany
71 Posts

Posted - Sep 05 2016 :  04:06:03  Show Profile  Reply
Thank you.

Jens

www.inntalsoftware.de/en/
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: