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

Fix import of video files and thumbnail generation #1219

Merged
merged 2 commits into from
Feb 8, 2022
Merged

Fix import of video files and thumbnail generation #1219

merged 2 commits into from
Feb 8, 2022

Conversation

kamil4
Copy link
Contributor

@kamil4 kamil4 commented Feb 8, 2022

Fixes #1218

There were two separate bugs:

  • Extra dot being added to file extensions on import
  • Leftover invocation of Helpers::createTemporaryFile which doesn't exist as of Improved file handling #1203

I also noticed that we were attempting to generate medium/medium2x variants for video files. They are not necessary because the front end can't use them (it displays the video file using the video tag, rather than displaying a medium image like it does for photos). Or was this change intentional? I'm guessing it dates back to #1055.

Copy link
Collaborator

@nagmat84 nagmat84 left a comment

Choose a reason for hiding this comment

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

LGTM. Identical to my bug fix, except for the additional removal of the medium size variants for videos.

@nagmat84
Copy link
Collaborator

nagmat84 commented Feb 8, 2022

also noticed that we were attempting to generate medium/medium2x variants for video files. They are not necessary because the front end can't use them [...]. Or was this change intentional? I'm guessing it dates back to #1055.

No, the change wasn't intentional. Actually it was a pure oversight. One could argue that for sake of clearness and traceability it might be worth not to add any extra code paths for this particular front-end. Probably, in some years other programmers will ask the question, what is so special about videos to not generate the size variants. Saying that, we should at least add a comment. But I am fine with removing the size variants.

Co-authored-by: Matthias Nagel <matthias.h.nagel@posteo.de>
@sonarcloud
Copy link

sonarcloud bot commented Feb 8, 2022

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Feb 8, 2022

Codecov Report

Merging #1219 (ae6711c) into master (373382b) will decrease coverage by 0.99%.
The diff coverage is 50.00%.

@kamil4 kamil4 merged commit 7f99804 into master Feb 8, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix-1218 branch February 8, 2022 19:46
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.

Video imports fail
2 participants