Project

General

Profile

Bug #793

PNG comment is not set

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
image format
Target version:
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

Revision 2622 (diff)
Added by Andreas Huggel over 7 years ago

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

History

#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