Image icon indicating copy to clipboard operation
Image copied to clipboard

Centre Merged Images?

Open AndrewMarkUK opened this issue 2 years ago • 0 comments

I am Implementing code as such:

Image::open($target_path . '/' . $imageName)->merge(Image::open($source_path)->scaleResize('',$h_o))->save($target_path . '/' . $imageName, 'jpg');

In this scenario I am taking a 16:9 image (already Created) $target_path, taking a 1:1 image $source_path and merging them. The images merge, but, I would like to center the 1:1 to the 16:9 image. Currently when I run this code, the 1:1 image is attached to the left of the image. Is there a way of centering the image instead?

AndrewMarkUK avatar Oct 07 '22 08:10 AndrewMarkUK