class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
Of course, I know that. Look at the code of the class!
What I meant is that when you us the class text features to add some text, it is not possible so far to print the dimensions of the image in the text. The text that you set in $foo->image_text is printed as it is (i.e. not parsed), nor any keyword is replaced with the actual dimensions.
So you hint that your code could be used to set the text prior to calling the Process() function. But this wouldn't work, as of now, because you don't know the dimensions the image will be in after being resized.
I will add such a feature in the next release. You will then be able to use keywords in $foo->image_text, such as [x], [y] or even [date].Reply
What I meant is that when you us the class text features to add some text, it is not possible so far to print the dimensions of the image in the text. The text that you set in $foo->image_text is printed as it is (i.e. not parsed), nor any keyword is replaced with the actual dimensions.
So you hint that your code could be used to set the text prior to calling the Process() function. But this wouldn't work, as of now, because you don't know the dimensions the image will be in after being resized.
I will add such a feature in the next release. You will then be able to use keywords in $foo->image_text, such as [x], [y] or even [date].