mirror of
https://github.com/webmproject/libwebp.git
synced 2025-08-30 07:42:27 +02:00
cwebp: add PNG metadata extraction
the values of XMP/EXIF/ICC are currently unused. Change-Id: I39d78b9a179f2d36c9c8ea12776bfdf6d8d18663
This commit is contained in:
@@ -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_) {
|
||||
|
Reference in New Issue
Block a user