missing to encode XML packet before to writte XMP into PNG

This commit is contained in:
HumanDynamo 2008-07-27 16:13:21 +00:00
parent 87030ebee7
commit 1bbc49eba6

View File

@ -305,6 +305,15 @@ namespace Exiv2
}
}
if (writeXmpFromPacket() == false)
{
if (XmpParser::encode(xmpPacket_, xmpData_))
{
#ifndef SUPPRESS_WARNINGS
std::cerr << "Error: Failed to encode XMP metadata.\n";
#endif
}
}
if (xmpPacket_.size() > 0)
{
// Update Xmp data to a new uncompressed iTXt PNG chunk