Function pictures

Source
pub fn pictures(path: &Path) -> Result<Vec<(Kind, Vec<u8>)>, TagError>
Expand description

Every picture a file carries, each with what it is of.

In the order the file holds them, which for a booklet is the order somebody scanned its pages in, and worth keeping for that reason alone.

The kinds are the tag formats’ own: ID3, Vorbis and MP4 all classify a picture, out of a list far longer than this program has any use for. It is narrowed to Kind here — a conductor, a lyricist and a brightly coloured fish all being, for the purpose of putting a file in a music folder, simply another image.