Initial commit: is_themecore out of the box v4.1.3

This commit is contained in:
Isabelle Anno
2025-11-19 13:17:30 +01:00
committed by Isabelle
commit 5d80babd5a
333 changed files with 33026 additions and 0 deletions

17
is_themecore/webp.php Normal file
View File

@ -0,0 +1,17 @@
<?php
require_once __DIR__ . '/../../config/config.inc.php';
require_once __DIR__ . '/is_themecore.php';
use Oksydan\Module\IsThemeCore\Core\Webp\RelatedImageFileFinder;
use Oksydan\Module\IsThemeCore\Core\Webp\WebpGenerator;
use Oksydan\Module\IsThemeCore\Form\Settings\WebpConfiguration;
$webpGenerator = new WebpGenerator(new RelatedImageFileFinder());
$webpGenerator->setDestinationFile($_GET['source']);
$webpGenerator->setQuality((int) Configuration::get(WebpConfiguration::THEMECORE_WEBP_QUALITY));
$webpGenerator->setConverter(Configuration::get(WebpConfiguration::THEMECORE_WEBP_CONVERTER));
$webpGenerator->setSharpYuv((bool) Configuration::get(WebpConfiguration::THEMECORE_WEBP_SHARPYUV));
$webpGenerator->convertAndServe();
exit;