1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-27 15:50:09 +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 'middle':
case 'center-center': case 'center-center':
case 'middle-middle': case 'middle-middle':
$x = intval($this->width / 2); $x = intval($this->width / 2) + $offset_x;
$y = intval($this->height / 2); $y = intval($this->height / 2) + $offset_y;
break; break;
default: default: