From Fedora Project Wiki
Description
This test case ensures that the exiv2
tool, which provides access to image metadata, works correctly in Fedora.
Setup
- Ensure
exiv2
is installed. If not, install it with the command:sudo dnf install exiv2
How to test
- Open a terminal.
- Download a public domain image from Wikimedia Commons known to contain metadata:
wget https://upload.wikimedia.org/wikipedia/commons/7/71/2010-kodiak-bear-1.jpg -O sample.jpg
- Use
exiv2
to view metadata of the image:exiv2 pr sample.jpg
- Modify the metadata:
exiv2 -M"set Exif.Photo.UserComment This is a test comment" sample.jpg
- Review the updated metadata to confirm your changes:
exiv2 pr sample.jpg
Expected Results
- The
exiv2 pr sample.jpg
command should display the image's metadata. - After modifying the metadata, the new comment "This is a test comment" should be reflected when you review the metadata.
Optional
You can further explore the tool by attempting to add or modify different metadata fields or work with different image formats that support metadata.