Convert text to image using Zend Framework

Asked

Viewed 113 times

2

Doubt:


There is another way to convert text into 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 the PHP and Apache, and I believe that this installation will not be possible in the type approval and production environments.

//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

I found these forms.

1 answer

1

You have five different libraries to work with PHP images: Cairo, Exif, GD, Gmagick and Imagemagick. Surely some of them should serve your purposes.

What you can do is use Composer to add some image generation library to your project. This makes installation much easier and would normally not need external settings (for example, in Apache).

  • Thank you, but unfortunately we are still using zend 1.

  • Just yesterday I converted a project into ZF1 to use Composer. What I had to do was manually set, in the project’s Composer.json, that all classes were in the root namespace. If you need a help to do it, just say the word!

  • Rodrigo Rigotti, I saw that you commented the answer, can you detail me how to perform this process of using Zend Framework 1 with libraries downloaded by Composer?? Thank you.

  • @Octavian saw the question you had asked and answered there. :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.