Added a few more conversion tests, testresults not updated yet.

This commit is contained in:
Andreas Huggel 2008-06-05 02:23:23 +00:00
parent b6e6906c0b
commit af41595c07

View File

@ -177,6 +177,39 @@ $exiv2 -px t.jpg
$exiv2 -Pkycv t.jpg
$exiv2 -pi t.jpg
# 10) Convert a few other tags of interest from Exif/Iptc to XMP
echo
echo Testcase 14
echo ===========
\cp $IMG u.jpg
$exiv2 -M'set Exif.Photo.DateTimeOriginal 2003:12:14 12:01:44' u.jpg
$exiv2 -M'set Exif.Photo.ExifVersion 48 50 50 49' u.jpg
$exiv2 -M'set Exif.Photo.ComponentsConfiguration 1 2 3 0' u.jpg
$exiv2 -M'set Exif.Photo.Flash 73' u.jpg
$exiv2 -M'set Exif.GPSInfo.GPSLatitude 3/1 8/1 29734512/1000000' u.jpg
$exiv2 -M'set Exif.GPSInfo.GPSLatitudeRef N' u.jpg
$exiv2 -M'set Exif.GPSInfo.GPSVersionID 2 2 0 1' u.jpg
$exiv2 -M'set Iptc.Application2.DateCreated 2007-05-09' u.jpg
$exiv2 -Pkycv u.jpg
$exiv2 -pi u.jpg
rm -f u.xmp
$exiv2 -eX u.jpg
$exiv2 -px u.xmp
$exiv2 -Pkycv u.xmp
$exiv2 -pi u.xmp
# 15) And back to Exif/IPTC
echo
echo Testcase 15
echo ===========
\cp $IMG v.jpg
\cp u.xmp v.xmp
$exiv2 -iX v.jpg
$exiv2 -px v.jpg
$exiv2 -Pkycv v.jpg
$exiv2 -pi v.jpg
) > $results 2>&1
# ----------------------------------------------------------------------