&& ImagickImageAdapter::supportsAnimatedGIFs(ImagickImageAdapter::getVersion())
) {
$system['graphicsLibrary'] = [
- 'result' => true,
+ 'result' => ImagickImageAdapter::supportsWebp(),
'value' => 'ImageMagick',
];
} elseif (GDImageAdapter::isSupported()) {
$system['graphicsLibrary'] = [
- 'result' => true,
+ 'result' => GDImageAdapter::supportsWebp(),
'value' => 'GD Library',
];
}
<item name="wcf.global.systemRequirements.graphicsLibrary.requirement"><![CDATA[GD Library oder ImageMagick]]></item>
<item name="wcf.global.systemRequirements.graphicsLibrary.description"><![CDATA[Die Grafikbearbeitungs-Bibliothek ist für die Verarbeitung und dynamische Generierung von Bildern zuständig. Es wird die GD Library oder alternativ ImageMagick benötigt.]]></item>
<item name="wcf.global.systemRequirements.graphicsLibrary.notFound"><![CDATA[nicht gefunden]]></item>
+ <item name="wcf.global.systemRequirements.graphicsLibrary.webp"><![CDATA[Unterstützung für WebP-Grafiken fehlt]]></item>
<item name="wcf.global.systemRequirements.active"><![CDATA[aktiviert]]></item>
<item name="wcf.global.systemRequirements.notActive"><![CDATA[nicht aktiviert]]></item>
<item name="wcf.global.systemRequirements.memoryLimit"><![CDATA[Zur Verfügung stehender Arbeitsspeicher]]></item>
<item name="wcf.global.systemRequirements.graphicsLibrary.requirement"><![CDATA[GD library or ImageMagick]]></item>
<item name="wcf.global.systemRequirements.graphicsLibrary.description"><![CDATA[A graphics library is needed to read images and for the dynamic image generation. The GD library or alternatively ImageMagick is required.]]></item>
<item name="wcf.global.systemRequirements.graphicsLibrary.notFound"><![CDATA[not found]]></item>
+ <item name="wcf.global.systemRequirements.graphicsLibrary.webp"><![CDATA[Support for WebP images missing]]></item>
<item name="wcf.global.systemRequirements.active"><![CDATA[Enabled]]></item>
<item name="wcf.global.systemRequirements.notActive"><![CDATA[Not enabled]]></item>
<item name="wcf.global.systemRequirements.memoryLimit"><![CDATA[PHP memory limit]]></item>
<dl class="col-xs-12 col-md-6">
<dt>{lang}wcf.global.systemRequirements.element.yours{/lang}</dt>
<dd>
- <span class="badge {if !$system.graphicsLibrary.result}red{else}green{/if}">{if !$system.graphicsLibrary.result}{lang}wcf.global.systemRequirements.graphicsLibrary.notFound{/lang}{else}{$system.graphicsLibrary.value}{/if}</span>
- {if !$system.graphicsLibrary.result}<small>{lang}wcf.global.systemRequirements.graphicsLibrary.description{/lang}</small>{/if}
+ {if $system.graphicsLibrary.result}
+ <span class="badge green">{$system.graphicsLibrary.value}</span>
+ {else}
+ <span class="badge red">
+ {* If the result is `false`, but the `value` is present, then the library failed the webp check. *}
+ {if $system.graphicsLibrary.value}
+ {lang}wcf.global.systemRequirements.graphicsLibrary.webp{/lang}
+ {else}
+ {lang}wcf.global.systemRequirements.graphicsLibrary.notFound{/lang}
+ {/if}
+ </span>
+ <small>{lang}wcf.global.systemRequirements.graphicsLibrary.description{/lang}</small>
+ {/if}
</dd>
</dl>
</div>