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?
How long is the text (after font specifications are defined) that the user is going to write?
How big is the area the user is going to write the text on?
When the user knows the image dimensions, then he or she has better estimation about what portion...