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

thumbnails: extract pictures from audio files #7491

Merged
merged 3 commits into from
Nov 6, 2023

Conversation

dschmidt
Copy link
Member

@dschmidt dschmidt commented Oct 15, 2023

Description

This PR uses https://github.com/dhowden/tag to extract pictures from audio files in the thumbnails service.

Related Issue

Motivation and Context

It would be nice to show appropriate cover images for audio files in the Web UI.
The main problem for now (which can totally be solved in another iteration is that not every audio file has embedded cover artwork, so on a page with a bunch of audio files, we would likely trigger a lot of status 500 requests.

This is my pet peeve, no company task - while reviews are personally appreciated, there is no priority.

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Followup tasks

It would be nice to know in advance whether a thumbnail is available or not - via propfind or graph api. For that we likely need to store thumbnail information in the metadata - but who would be responsible for that? thumbnails service, search service, ...?

AFAICT tika does not extract image information from audio files - so we would need to duplicate some of the functionality here in the search service to write thumbnail information to the metadata. The thumbnail service does not generate images before they are requested, so we would have the information only on the second directly listing, so search service seems like a better fit actually...

@update-docs
Copy link

update-docs bot commented Oct 15, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@dschmidt dschmidt changed the title thumbnails: extract pictures from audio files thumbnails: extract artwork from audio files Oct 15, 2023
@dschmidt dschmidt changed the title thumbnails: extract artwork from audio files thumbnails: extract pictures from audio files Oct 15, 2023
@dschmidt dschmidt requested a review from micbar October 19, 2023 08:18
@dschmidt
Copy link
Member Author

Updated and CI fixed

@sonarcloud
Copy link

sonarcloud bot commented Oct 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@dschmidt
Copy link
Member Author

LazyReadSeeker removed, log.Fatal removed, Changelog added.

Good to merge from my end

Copy link
Contributor

@micbar micbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine for now!

The read seeker should be implemented on a higher level.

We need to support range requests because we cannot afford too much traffic on the platform.

@dschmidt dschmidt merged commit 62f232c into owncloud:master Nov 6, 2023
2 checks passed
@dschmidt
Copy link
Member Author

dschmidt commented Nov 6, 2023

Nice, thanks!

ownclouders pushed a commit that referenced this pull request Nov 6, 2023
thumbnails: extract pictures from audio files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants