Anna Sirota
ad66ec6476
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 of `File.source`. Thumbnails have predefined set of dimensions: 1920 x 1080 and 640 x 360 (for cards). 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 in `File.thumbnails` instead. Additionally, all thumbnail paths are saved in `File.metadata`. When `File` is deleted all its thumbnails are deleted along with it. Implements #51 Part of #70 Reviewed-on: #87 Reviewed-by: Oleg-Komarov <oleg-komarov@noreply.localhost> |
||
---|---|---|
.. | ||
__init__.py | ||
0001_initial.py | ||
0002_initial.py | ||
0003_alter_file_type.py | ||
0004_alter_file_status.py | ||
0005_rename_validation_filevalidation_results_and_more.py | ||
0006_remove_file_date_deleted.py | ||
0007_alter_file_status.py | ||
0008_alter_file_thumbnail.py |