|
|
|
@ -681,22 +681,17 @@ namespace Exiv2 {
|
|
|
|
|
} else if (!strcmp(szChunk, "tEXt") || !strcmp(szChunk, "zTXt") || !strcmp(szChunk, "iTXt") ||
|
|
|
|
|
!strcmp(szChunk, "iCCP")) {
|
|
|
|
|
DataBuf key = PngChunk::keyTXTChunk(chunkBuf, true);
|
|
|
|
|
if (key.empty() == false && (
|
|
|
|
|
compare("Raw profile type exif", key, 21) ||
|
|
|
|
|
compare("Raw profile type APP1", key, 21) ||
|
|
|
|
|
compare("Raw profile type iptc", key, 21) ||
|
|
|
|
|
compare("Raw profile type xmp", key, 20) ||
|
|
|
|
|
compare("XML:com.adobe.xmp", key, 17) ||
|
|
|
|
|
compare("icc", key, 3) || // see test/data/imagemagick.png
|
|
|
|
|
compare("ICC", key, 3) ||
|
|
|
|
|
compare("Description", key, 11)))
|
|
|
|
|
{
|
|
|
|
|
if (!key.empty() &&
|
|
|
|
|
(compare("Raw profile type exif", key, 21) || compare("Raw profile type APP1", key, 21) ||
|
|
|
|
|
compare("Raw profile type iptc", key, 21) || compare("Raw profile type xmp", key, 20) ||
|
|
|
|
|
compare("XML:com.adobe.xmp", key, 17) ||
|
|
|
|
|
compare("icc", key, 3) || // see test/data/imagemagick.png
|
|
|
|
|
compare("ICC", key, 3) || compare("Description", key, 11))) {
|
|
|
|
|
#ifdef EXIV2_DEBUG_MESSAGES
|
|
|
|
|
std::cout << "Exiv2::PngImage::doWriteMetadata: strip " << szChunk
|
|
|
|
|
<< " chunk (length: " << dataOffset << ")" << std::endl;
|
|
|
|
|
#endif
|
|
|
|
|
} else
|
|
|
|
|
{
|
|
|
|
|
} else {
|
|
|
|
|
#ifdef EXIV2_DEBUG_MESSAGES
|
|
|
|
|
std::cout << "Exiv2::PngImage::doWriteMetadata: write " << szChunk
|
|
|
|
|
<< " chunk (length: " << dataOffset << ")" << std::endl;
|
|
|
|
|