1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-27 15:50:09 +02:00

Fix “insert” offset with center position

This commit is contained in:
Davide Bellini
2017-10-18 16:48:38 +02:00
parent a54d1e9e6a
commit e8073ae4ee

View File

@@ -337,8 +337,8 @@ class Size
case 'middle':
case 'center-center':
case 'middle-middle':
$x = intval($this->width / 2);
$y = intval($this->height / 2);
$x = intval($this->width / 2) + $offset_x;
$y = intval($this->height / 2) + $offset_y;
break;
default: