We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b2e33b commit 9f0cc0bCopy full SHA for 9f0cc0b
resizeimage.snippet.php
@@ -10,11 +10,11 @@
10
$quality = $modx->getOption("quality", $scriptProperties, 70);
11
$fileExtension = $modx->getOption("fileExtension", $scriptProperties, "webp");
12
$setRatio = $modx->getOption("setRatio", $scriptProperties, true);
13
+$cachePath = $modx->getOption("cachePath", $scriptProperties, "assets/image-cache/");
14
$cultureKey = $modx->getOption("cultureKey");
15
$basePath = $modx->getOption("base_path");
16
$filePath = preg_replace("/^\/?" . $cultureKey . "\//i", "", $input);
17
$filePathLast = $filePath;
-$cachePath = $modx->getOption("cachePath", $scriptProperties, "assets/image-cache/");
18
$srcsets = [];
19
$src = [];
20
0 commit comments