Serial-ATA / Serial-ATA/lofty-rs
Stream picture tags
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Rust
- Stars
- 359
- Forks
- 77
- Avg merge
- 12h 54m
- Merged PRs (30d)
- 11
Description
Summary
The ability to read the picture tags as a stream for improve performance
API design
let probe = lofty::Probe::open(path);
let tags_reader = probe.into_reader();
// Consumes tags_reader and returns an iterator that skips non-picture tags
let pictures_iterator = tags_reader.pictures();
let first_picture_reader = pictures_iterator.next()?;
let bytes = picture_reader.data; // std::io::Bytes<> iterator
let mime_type = picture_reader.mime_type; // Access other info about the picture
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating Probe::open and the proposed into_reader API, then compare the existing picture-tag parsing path with the requested pictures() iterator. Done means callers can iterate picture tags as readers and access each picture's byte stream and MIME type without loading all picture data at once.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100