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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user