funkwhale/docs/administrator/manage-script/thumbnails.md

63 wiersze
1.7 KiB
Markdown
Czysty Zwykły widok Historia

2022-07-01 09:02:29 +00:00
# Regenerate thumbnails
We increased the quality of thumbnails from 70px to 95px in Funkwhale 1.0. This action removes visual artifacts that affect lower quality thumbnails. You can run the `funkwhale-manage` command line interface to generate new thumbnails. If you want to keep thumbnails at their original quality, add `THUMBNAIL_JPEG_RESIZE_QUALITY=70` to your `.env` file.
2022-07-01 09:02:29 +00:00
```{note}
If you're using S3 storage, the `__sized__` folder is located in your S3 bucket.
```
To generate new thumbnails:
2022-07-23 13:32:35 +00:00
::::{tab-set}
:::{tab-item} Debian
:sync: debian
2022-07-01 09:02:29 +00:00
1. SSH into your Funkwhale server.
2. Navigate to your Funkwhale directory.
```{code-block} sh
cd /srv/funkwhale
```
2022-07-01 09:02:29 +00:00
3. Delete the `__sized__` directory inside your `MEDIA_ROOT` directory. By default this is `/srv/funkwhale/data/media`. This directory contains the current thumbnails.
```{code-block} sh
rm -r __sized__/
```
2022-07-01 09:02:29 +00:00
4. Run the `funkwhale-manage` command line interface to regenerate the thumbnails.
2022-07-01 09:02:29 +00:00
```{code-block} sh
venv/bin/funkwhale-manage fw media generate-thumbnails
```
2022-07-01 09:02:29 +00:00
2022-07-23 13:32:35 +00:00
:::
2022-07-01 09:02:29 +00:00
2022-07-23 13:32:35 +00:00
:::{tab-item} Docker
:sync: docker
2022-07-01 09:02:29 +00:00
1. SSH into your Funkwhale server.
2. Navigate to your Funkwhale directory.
```{code-block} sh
cd /srv/funkwhale/
```
2022-07-01 09:02:29 +00:00
3. Delete the `__sized__` directory inside your `MEDIA_ROOT` directory. By default this is `/srv/funkwhale/data/media`. This directory contains the current thumbnails.
```{code-block} sh
rm -r data/media/__sized__/
```
2022-07-01 09:02:29 +00:00
4. Run the `funkwhale-manage` command line interface to regenerate the thumbnails.
2022-07-01 09:02:29 +00:00
```{code-block} sh
sudo docker compose run --rm api funkwhale-manage fw media generate-thumbnails
```
2022-07-01 09:02:29 +00:00
2022-07-23 13:32:35 +00:00
:::
::::
2022-07-01 09:02:29 +00:00
The script generates new thumbnails for all album and artist art on your pod.