Bug #793

PNG comment is not set

Added by Thomas Beutlich about 6 years ago. Updated over 5 years ago.

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

100%

Category:image format
Target version:0.23

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

Revision 2622
Added by Andreas Huggel about 6 years ago

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

History

#1 Updated by Andreas Huggel about 6 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 over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux