Good day to all!

Task: generate in PHP using GD text, curved in an arc with a certain angle, on top of a given image.

An example can be seen here . Enter First name and Surname and see the result. I searched on i-net and found nothing on the topic.

Question: How to calculate the generation of the text in a similar version? Maybe there is a more convenient solution or tell me which way to dig.

    1 answer 1

    Here is what I found: https://stackoverflow.com/questions/33052404/how-to-create-curved-text-with-php-imagick

    True, they use imagick to create a picture when applying it to another to bend it in an arc.

    As a second option (more flexible), they propose to create an SVG where any text can be bent along any path.

    <textPath xlink:href="#YourPath">Some Text</textPath> 

    and convert to raster

    https://stackoverflow.com/questions/29563757/pdf-creation-with-an-svg-with-curved-text-in-php-no-text-is-shown

    • Thank! After some tests I decided to stop at the first version. Conclusion: My problem is not the inability to search, but ignorance of English =) - Timur