O'Reilly logo

ImageMagick Tricks by Sohail Salehi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Wizard Step 2: How to Write Text on Input Images

We saw that the images in the web gallery have various predefined settings for writing text on them, but what about other images?

So we need a page to define new charactristics for fonts that we are going to use on the image text. step2.php contains several parts for defining these settings and a unique naming mechanism for files. As we saw in the earlier discussions in this chapter we can create unique file names using user session IDs.

The first problem is to obtain the overall properties of the image that is addressed or uploaded. We have no idea about the format and size of the image that the user is going to work on and hence it is necessary to get information like:

  • What is the image dimension? ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required