Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centre Merged Images? #184

Open
AndrewMarkUK opened this issue Oct 7, 2022 · 0 comments
Open

Centre Merged Images? #184

AndrewMarkUK opened this issue Oct 7, 2022 · 0 comments

Comments

@AndrewMarkUK
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant