You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: