1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-17 20:11:46 +02:00
This commit is contained in:
Ryan Cramer
2020-04-27 15:17:52 -04:00
parent a157e690fa
commit 1cd1976a38

View File

@@ -138,7 +138,7 @@ class FieldtypeImage extends FieldtypeFile {
$item['width'] = (int) $info['width']; $item['width'] = (int) $info['width'];
$item['height'] = (int) $info['height']; $item['height'] = (int) $info['height'];
$item['ratio'] = $pagefile->ratio; $item['ratio'] = number_format($pagefile->ratio, 2, '.', '');
} }
return $item; return $item;