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 img1.jpg
Manufacturer: Canon
Model: Canon EOS REBEL SL1
Exposure Time: 1/80 second
F-stop: f/2.8
ISO: ISO 2000
Date Taken: 2013:08:2022:23:45
Focal Length: 40 mm
Width: 512 pixels
Height: 768 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 I/O.
5
You must use a structure to represent a JPEG/TIFF/EXIF 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!