Commit Graph

1 Commits

Author SHA1 Message Date
bymyself
3688230e81 fix: handle RIFF padding for odd-sized WEBP chunks
WEBP files with odd-sized chunks before the EXIF chunk would fail to
load embedded workflows because the RIFF container specification
requires odd-sized chunks to be padded with a single byte.

This fix adds the padding byte to the offset calculation when parsing
WEBP metadata chunks.

Reference: https://developers.google.com/speed/webp/docs/riff_container#riff_file_format

Fixes #8076

Amp-Thread-ID: https://ampcode.com/threads/T-019c17d3-82e5-709b-b440-63fd92053adb
2026-01-31 22:26:35 -08:00