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