Question: What To Do For your project you will make a utility that can print the contents of an existing tag, if there. Make a program
What To Do
For your project you will make a utility that can print the contents of an existing tag, if there.
Make a program called exifview and make it so that it runs with the following command line:
exifview FILENAME
It should print the contents of the EXIF tag to the console if present, or give a message if not
present or readable by our program.
Output
$ exifview imgjpg
Manufacturer: Canon
Model: Canon EOS REBEL SL
Exposure Time: second
Fstop: f
ISO: ISO
Date Taken: ::::
Focal Length: mm
Width: pixels
Height: pixels
Hints and Requirements
We need to treat these files as binary files rather than text files. Make sure to open the
file correctly, and to use fread for IO
You must use a structure to represent a JPEGTIFFEXIF header and another struct to
represent a TIFF tag. Do NOT use a bunch of disjoint variables. Do your fread with the
whole structure at once. That is read an entire tag in one file operation.
If the header field does not contain the Exif string in the right place, print an error
message that the tag was not found. If the TIFF header contains MM instead of II print
an error message that we do not support the endianness.Exif viewer in C
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
