1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-26 15:24:37 +02:00

Merge pull request #792 from billmn/patch-1

Fix “insert” offset with center position
This commit is contained in:
Oliver Vogel
2021-07-06 15:35:54 +02:00
committed by GitHub

View File

@@ -338,8 +338,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: