extensions-website/files/migrations
Anna Sirota ad66ec6476 Thumbnails for images and videos (#87)
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>
2024-04-25 17:50:56 +02:00
..
__init__.py Initial models, tests and other boilerplate 2022-08-25 17:37:48 +02:00
0001_initial.py Flattening out django migrations 2024-01-29 16:41:08 +01:00
0002_initial.py Flattening out django migrations 2024-01-29 16:41:08 +01:00
0003_alter_file_type.py Make migrations 2024-02-22 21:25:15 +01:00
0004_alter_file_status.py Make all files approved by default 2024-02-26 15:52:38 +01:00
0005_rename_validation_filevalidation_results_and_more.py Scan files with clamdscan (#77) 2024-04-12 19:11:28 +02:00
0006_remove_file_date_deleted.py Make it possible to fully delete unlisted/unrated extensions and versions (#81) 2024-04-19 11:00:13 +02:00
0007_alter_file_status.py Fix a failing migration 2024-04-19 11:11:45 +02:00
0008_alter_file_thumbnail.py Thumbnails for images and videos (#87) 2024-04-25 17:50:56 +02:00