Bug #793

PNG comment is not set

Added by Thomas Beutlich over 7 years ago. Updated almost 7 years ago.

Status:ClosedStart date:08 Oct 2011
Priority:NormalDue date:
Assignee:-% Done:


Category:image format
Target version:0.23


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

Revision 2622
Added by Andreas Huggel over 7 years ago

#793: Set PNG comment correctly. (Thomas Beutlich)


#1 Updated by Andreas Huggel over 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Thanks for reporting this issue and providing the fix!

#2 Updated by Andreas Huggel almost 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux