Share via

Word Form - Extract Exif Data from JPEG

Anonymous
2017-07-22T00:30:04+00:00

Hello,

I have crated a form on which I have an image control.

Once I have selected an image, I want to populate some text content controls with metadata from the image.

Of course, first I need to locate and extract the metadata out of the file.

I am working through a document at https://www.media.mit.edu/pia/Research/deepview/exif.html.

It discusses Image File Directories which contain a number of entries.

Each entry contains: 

    Tag Number

    Data Format (which tells you # of bytes / component)

    Number of Components

    Data Value or Offset

        If data < 4 bytes = data

        if data > 4 bytes = offset to data

I follow all of this until I get to the offset.  If the number of bytes / component is 1 (for example a string) and the number of components is 26 (> 4 bytes) then the last item in the entry is an offset.

My question is, what is this offset relative to?

Any input would be greatly appreciated.

Best Regards,

Chris

***Post moved by the moderator to the appropriate forum category.***

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2017-07-22T21:22:39+00:00

Hello,

After working thru the JPEG file with a Hex editor it appears that the offset is relative to the first byte of the Tiff header.

Chris

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful