Thumbnails for images and videos #87
No reviewers
Labels
No Label
Priority
Critical
Priority
High
Priority
Low
Priority
Normal
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Type
Breaking
Type
Documentation
Type
Enhancement
Type
Feature
Type
Report
Type
Security
Type
Suggestion
Type
Testing
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: infrastructure/extensions-website#87
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "thumbnails"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When an image or a video is uploaded and its initial scan comes back with an OK, thumbnails are generated for it.
In case the file is a video, a single frame is extracted from it with
ffmpeg
and used instead ofFile.source
.Thumbnails have predefined set of dimensions:
Thumbnails have fixed predefined locations in the storage, constructed from file
hash
, thumbnail's format (PNG) and dimensions:After thumbnails are generated, these paths are saved in the
File.metadata
:When original file is an image, the path of the largest thumbnail is saved in
File.thumbnail
column, when it's a video the extracted frame is stored inFile.thumbnails
instead.When
File
is deleted all its thumbnails are deleted along with it.Implements #51
Part of #70
WIP: Thumbnails for imagesto WIP: Thumbnails for image and video previewsWIP: Thumbnails for image and video previewsto WIP: Thumbnails for images and videosWIP: Thumbnails for images and videosto Thumbnails for images and videos