Bug #793
PNG comment is not set
Start date:
08 Oct 2011
Due date:
% Done:
100%
Estimated time:
Description
The comment of the PNG file png_desc.zip is not correctly set in Exiv2 0.22. The reason is that in funtion PngChunk::parseChunkContent()
at source:trunk/src/pngchunk.cpp#L403 the comment remains empty due to a const function Image::comment()
. The following fix
pImage->setComment(std::string(reinterpret_cast<const char*>(arr.pData_), arr.size_));solves the problem.
Associated revisions
History
Updated by Andreas Huggel about 10 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Thanks for reporting this issue and providing the fix!
#793: Set PNG comment correctly. (Thomas Beutlich)