Add config for MASTODON_USE_LIBVIPS (#1463)

* Docs for using libvips

* "utilizating"
This commit is contained in:
Michael Stanclift 2024-08-26 03:40:37 -05:00 committed by GitHub
parent 24dd81ef49
commit 2dfcf2c059
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View File

@ -262,6 +262,17 @@ If you are not using Unix sockets, this defines the IP to which the process will
This variable cannot be defined in dotenv (`.env`) files as it's used before they are loaded.
{{</ hint >}}
#### `MASTODON_USE_LIBVIPS`
By default, Mastodon uses ImageMagick to process images in posts. As an alternative, [libvips](https://www.libvips.org) 8.13+ can be utilized, which has better performance and lower resource utilization.
When installing Mastodon from source, this defaults to `false`, set to `true` to enable.
When deploying the Mastodon project container image, this is hardcoded to `true` and should not be overridden.
**Version history:**\
4.3.0 - added
### Scaling options {#scaling}
{{< page-ref page="admin/scaling" >}}

View File

@ -42,7 +42,7 @@ echo "deb [signed-by=/usr/share/keyrings/postgresql.asc] http://apt.postgresql.o
```bash
apt update
apt install -y \
imagemagick ffmpeg libpq-dev libxml2-dev libxslt1-dev file git-core \
imagemagick ffmpeg libvips-tools libpq-dev libxml2-dev libxslt1-dev file git-core \
g++ libprotobuf-dev protobuf-compiler pkg-config gcc autoconf \
bison build-essential libssl-dev libyaml-dev libreadline6-dev \
zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev \