Extension:AVIF
Appearance
Release status: beta |
|
|---|---|
| Implementation | Media |
| Description | Automatic generation of AVIF versions of images and thumbnails |
| Author(s) | tesinormed (SomeContributorOnEarthtalk) |
| Latest version | 0.4.0 (2024-11-29) |
| 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. It does not generate AVIF 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
AVIFin 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 |
|---|---|
|
The file to generate an AVIF version from (can be specified multiple times) |
If the option is not set, the maintenance script will queue transformation jobs for every file and image/png file.
image/jpeg
