I need to create a preview box for my text. A good example can be found on the website below. It takes the user input and generates a PNG of what it would look like.

How would I be able to do something similar?

1 Answer 1


You can use imagestring from php. For more details and examples, you can follow this link http://php.net/manual/en/function.imagestring.php

Good luck !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.