1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00
This commit is contained in:
Ryan Cramer
2017-06-23 06:15:21 -04:00
parent dbfb3e2c7e
commit 7ad84bf1c3

View File

@@ -177,7 +177,9 @@ class InputfieldImage extends InputfieldFile implements InputfieldItemList, Inpu
$jsExt = $config->debug ? "js" : "min.js";
$config->scripts->add($thisURL . "exif.$jsExt");
$config->scripts->add($thisURL . "PWImageResizer.$jsExt");
$this->wrapAttr('data-resize', "$this->maxWidth;$this->maxHeight;$this->maxSize;" . (float) ($this->clientQuality / 100));
$maxSize = str_replace(',', '.', $this->maxSize);
$quality = str_replace(',', '.', (float) ($this->clientQuality / 100));
$this->wrapAttr('data-resize', "$this->maxWidth;$this->maxHeight;$maxSize;$quality");
}
if(!$renderValueMode && $this->value instanceof Pageimages) {