T
T
tincap2016-11-17 18:48:08
PHP
tincap, 2016-11-17 18:48:08

How to pad a rectangular image to a square one in PHP?

Hello.
Instagram converts rectangular images to square ones when posting photos. And he does not just crop them, but complements them with a white background around the edges to make a square photo.
How to achieve this in PHP? Maybe someone has a ready function?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question