diff --git a/CHANGELOG.md b/CHANGELOG.md index a5f231c..727ca8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog + +## [2.2.1] - 28.07.2023 + +- Settings page shows which functions are available and which output formats are possible + + + ## [2.2.0] - 28.07.2023 - Added setting to force usage of Imagick. F.e. when GD is not supporting avif as expected. diff --git a/package.yml b/package.yml index 8009879..6695265 100644 --- a/package.yml +++ b/package.yml @@ -1,5 +1,5 @@ package: media_negotiator -version: 2.2.0 +version: 2.2.1 name: Media Negotiator author: Andreas Lenhardt supportpage: https://github.com/AndiLeni/media_negotiator diff --git a/pages/index.php b/pages/index.php index a646e1e..242f626 100644 --- a/pages/index.php +++ b/pages/index.php @@ -2,6 +2,8 @@ setVar('title', "Einstellungen", false); $fragment->setVar('body', $form->get(), false); echo $fragment->parse('core/page/section.php'); + +?> + +
Imagick ist nicht installiert
'; +} + +if (function_exists('imageavif')) { + echo 'imageavif ist verfügbar
'; +} else { + echo 'imageavif ist nicht verfügbar
'; +} + +if (function_exists('imagewebp')) { + echo 'imagewebp ist verfügbar
'; +} else { + echo 'imagewebp ist nicht verfügbar
'; +} + +$canGenerateWebp = Helper::getOutputFormat(['image/webp']) == "webp" ? 'ja' : 'nein'; +$canGenerateAvif = Helper::getOutputFormat(['image/avif']) == "avif" ? 'ja' : 'nein'; + +echo "WEBP Ausgabe möglich: {$canGenerateWebp}
"; +echo "AVIF Ausgabe möglich: {$canGenerateAvif}
"; + + +?> \ No newline at end of file