diff --git a/src/webpimage.cpp b/src/webpimage.cpp index 7932c4c0..3fefb240 100644 --- a/src/webpimage.cpp +++ b/src/webpimage.cpp @@ -460,7 +460,7 @@ namespace Exiv2 { } bool bPrintPayload = (equalsWebPTag(chunkId, "XMP ") && option==kpsXMP) - || (equalsWebPTag(chunkId, "ICC ") && option==kpsIccProfile) + || (equalsWebPTag(chunkId, "ICCP") && option==kpsIccProfile) ; if ( bPrintPayload ) { out.write((const char*) payload.pData_,payload.size_); diff --git a/test/bugfixes-test.sh b/test/bugfixes-test.sh index 266c8e3d..4ff3fa9d 100755 --- a/test/bugfixes-test.sh +++ b/test/bugfixes-test.sh @@ -548,21 +548,53 @@ source ./functions.source runTest exiv2 -pa --grep fuji/i $filename done - num=1199 + num=1199 # WebPImage printf "$num " >&3 filename=exiv2-bug$num.webp # http://dev.exiv2.org/attachments/download/1033/Stonehenge-with-icc.webp + icc_name=exiv2-bug$num.icc + exv_name=exiv2-bug$num.exv copyTestFile $filename runTest exiv2 -pS $filename runTest exiv2 -pR $filename runTest exiv2 -pX $filename | xmllint --pretty 2 - # test deleting metadata - for arg in -dC -de -dx -dCe -dCx -dCxe; do + for option in -dC -de -dx -dCe -dCx -dCxe; do copyTestFile $filename runTest exiv2 -pS $filename - runTest exiv2 $arg $filename + runTest exiv2 $option $filename runTest exiv2 -pS $filename done - # TODO: inserting metadata + # test print/insert metadata + if [ 1 == 1 ]; then + # ICC Profile + copyTestFile $filename + copyTestFile Reagan.tiff + exiv2 -pS $filename + exiv2 -pC Reagan.tiff > $icc_name + exiv2 -iC $filename + exiv2 -pS $filename + fi + + if [ 1 == 0 ]; then + # XMP + copyTestFile $filename + copyTestFile Reagan.tiff + exiv2 -pS $filename + exiv2 --force -ex Reagan.tiff + mv Reagan.exv $exv_name + exiv2 -ix $filename + exiv2 -pS $filename + fi + + if [ 1 == 0 ]; then + # EXIF + copyTestFile exiv2-bug937.jpg $filename + exiv2 --force -ea $filename + copyTestFile $filename + exiv2 -pS $filename + exiv2 -ie $filename + exiv2 -pS $filename + fi num=1202 printf "$num " >&3 diff --git a/test/data/bugfixes-test.out b/test/data/bugfixes-test.out index ad1e2a61..3bbe853a 100644 Binary files a/test/data/bugfixes-test.out and b/test/data/bugfixes-test.out differ