Extension:AVIF
Appearance
AVIF Release status: beta |
|
---|---|
Implementation | Media |
Description | Automatic generation of AVIF versions of images and thumbnails |
Author(s) | tesinormed (SomeContributorOnEarthtalk) |
Latest version | 0.1.5 (2024-11-24) |
Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | >= 1.42 |
PHP | >= 8.1 |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | GitHub: Note: |
Example | Amaranth Legacy |
$wgAVIFExecutablePath |
|
The AVIF extension automatically generates AVIF versions of images and thumbnails.
Currently, only
and image/png
are supported for transformation.
image/jpeg
Installation
[edit]- Install the
PHP extension.imagick
- Install
.libavif
- Set up the job queue.
- Install the PictureHtmlSupport extension.
- Download, extract and place the file(s) in a directory called
AVIF
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'AVIF' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration parameters
[edit]Variable | Description | Default value |
---|---|---|
$wgAVIFExecutablePath |
Path to the executable |
|
Maintenance scripts
[edit]GenerateAvifFromFiles.php
[edit]GenerateAvifFromFiles.php
Option | Description |
---|---|
|
File(s) to generate AVIF versions of |
If the
option is not set, the maintenance script will queue transformation jobs for every file
and image/png
file.
image/jpeg