cwebp: add PNG metadata extraction

the values of XMP/EXIF/ICC are currently unused.

Change-Id: I39d78b9a179f2d36c9c8ea12776bfdf6d8d18663
This commit is contained in:
James Zern
2012-12-04 19:00:30 -08:00
parent 6bf208748c
commit dba64d91bb
3 changed files with 184 additions and 9 deletions

View File

@@ -327,7 +327,7 @@ static int ReadPicture(const char* const filename, WebPPicture* const pic,
// If no size specified, try to decode it as PNG/JPEG (as appropriate).
const InputFileFormat format = GetImageType(in_file);
if (format == PNG_) {
ok = ReadPNG(in_file, pic, keep_alpha);
ok = ReadPNG(in_file, pic, keep_alpha, metadata);
} else if (format == JPEG_) {
ok = ReadJPEG(in_file, pic);
} else if (format == TIFF_) {