Convert text to image using Zend Framework
Doubt:
Is there any other way to convert text to image PNG
other than by **ImageMagick**
?
We are using the Zend Framework.
I installed the module [Php5-imagick][1]
, but it took a lot of work and I had to update many modules of PHP
and Apache
, and I believe that this installation will not be possible in the homologation environments and production.
/ / EDIT
Https://stackoverflow.com/questions/8503077/create-transparent-png-with-text-from-scratch-in-php
Http://www.php.net/manual/en/image.examples-png.php
Http://www.daftlogic.com/projects-text-to-image.htm
Found these forms.
1 answers
You have five different libraries to work with images in PHP: Cairo, Exif, GD, Gmagick and ImageMagick. Surely some of them should serve your purposes.
What you can do is use Composer to add some imaging library to your project. This makes installation much easier and would normally not need external settings (e.g. in Apache).