Cannot extract EXIF metadata from webp
-
I found a thread here talking about XMP metadata, but adding XMP metadata to files is a huge headache compared to EXIF. My files have EXIF metadata, which is currently being read “successfully”, but not being parsed correctly. Here’s what I get. This is the UserComment field, but other fields also appear in this section equally garbled.
post_id => 3656 id3:GETID3_VERSION => 1.9.22-202207161647 id3:filesize => 25648 id3:filepath => /bitnami/wordpress/wp-content/uploads/2023/02 id3:filename => testjpeg.webp id3:filenamepath => /bitnami/wordpress/wp-content/uploads/2023/02/testjpeg.webp id3:avdataoffset => 0 id3:avdataend => 25648 id3:fileformat => webp id3:video.resolution_x => 512 id3:video.resolution_y => 512 id3:encoding => UTF-8 id3:mime_type => image/webp id3:riff.header_size => 25640 id3:riff.WEBP.VP8X.offset => 12 id3:riff.WEBP.VP8X.size => 10 id3:riff.WEBP.VP8X.data => ??????? id3:riff.WEBP.VP8 .offset => 30 id3:riff.WEBP.VP8 .size => 25530 id3:riff.WEBP.VP8 .keyframe => 1 id3:riff.WEBP.VP8 .version => 0 id3:riff.WEBP.VP8 .show_frame => 0 id3:riff.WEBP.VP8 .data_bytes => 101584 id3:riff.WEBP.VP8 .scale_x => 0 id3:riff.WEBP.VP8 .width => 512 id3:riff.WEBP.VP8 .scale_y => 0 id3:riff.WEBP.VP8 .height => 512 id3:riff.WEBP.EXIF.offset => 25568 id3:riff.WEBP.EXIF.size => 72 id3:riff.WEBP.EXIF.data => Exif??MM?*?????i?????????????????????(this is my comment smile? id3:riff.encoding => ISO-8859-1 id3:playtime_seconds => 0 id3:width => 512 id3:height => 512 id3:post_id => 3656
I tried using about 50 different variants of
template:([+id3:riff.WEBP.EXIF.data,single+])
but I wasnt able to get anything to work, and even if it did I expect it would grab some garbled data anyway.Is there a way I can parse this data into a field? I am creating the files myself in python using Pillow, so I am quite flexible, but I need to pass data via metadata somehow. For now I am using jpegs and it works, but I want to start using webp.
- The topic ‘Cannot extract EXIF metadata from webp’ is closed to new replies.