A
A
Alexander Semikashev2016-12-26 18:54:01
PHP
Alexander Semikashev, 2016-12-26 18:54:01

How to generate text into an image?

You need to create a canvas 230px by 100px and add text there right in the center of the canvas with automatic line wrapping. In this case, words can be highlighted in bold.
All clambered, I can not find a solution on imagick.
I would do it manually, but I need to generate 5000 images. I thought either to do it on the fly using php and imagemagick, or maybe the program is what it is.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dostelon, 2016-12-26
@dostelon

Only bold does not highlight individual words.
https://github.com/stil/gd-text

R
Rurik Rostislavich, 2016-12-26
@snipeer777

Generate base64 versions of images?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question