samedi 3 juin 2017

Add white space to image using Laravel 5 intervention image to make square image

Assume I have a favourite square size, and in this case it has 2236 px width and height.

I need to save my images in this size on my server using php intervention package.

It's not important that what is user's image size, but the point is that the image have to save with new size but the user image have to be center and middle of the square.

Please take a look at this picture: my plan

Does anyone any experience in this situation and do you know how can I do that?

Thanks in Advance



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2rRP4L7
via IFTTT

Aucun commentaire:

Enregistrer un commentaire