Extension:AVIF
![]() Release status: betaCategory:Beta status extensions |
|
---|---|
Implementation | MediaCategory:Media handling extensions |
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.Category:Extensions with release branches compatibility policy |
MediaWiki | >= 1.42Category:Extensions with manual MediaWiki version |
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
- 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
Variable | Description | Default value |
---|---|---|
$wgAVIFExecutablePath | Path to the executable |
|
Maintenance scripts
GenerateAvifFromFiles.php
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
See also
Category:All extensions
Category:Beta status extensions
Category:BitmapHandlerTransform extensions
Category:Extensions in GitHub version control
Category:Extensions not in ExtensionJson
Category:Extensions with manual MediaWiki version
Category:Extensions with release branches compatibility policy
Category:Extensions without an image
Category:FileDeleteComplete extensions
Category:FileUndeleteComplete extensions
Category:GPL licensed extensions
Category:Media handling extensions
Category:PageMoveComplete extensions
Category:UploadComplete extensions