Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question