Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select cover image from images in metadata. #617

Merged
merged 1 commit into from
Sep 12, 2020
Merged

Select cover image from images in metadata. #617

merged 1 commit into from
Sep 12, 2020

Conversation

Borewit
Copy link
Owner

@Borewit Borewit commented Sep 12, 2020

Add selectCover() function which helps to pick the best cover image.

import * as mm from 'music-metadata';

(async () => {
  const {common} = await mm.parseFile(filePath);
  const cover = mm.selectCover(common.picture);
}
)();

@coveralls
Copy link

coveralls commented Sep 12, 2020

Coverage Status

Coverage decreased (-0.08%) to 92.359% when pulling ba404bb on selectCover into 73115d6 on master.

@Borewit Borewit merged commit 1d39294 into master Sep 12, 2020
@Borewit
Copy link
Owner Author

Borewit commented Sep 12, 2020

Part of v7.2.0

@Borewit Borewit deleted the selectCover branch February 14, 2021 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants