Man I hate it when I have to upgrade things, they always fuck up something. Right now, I spent hours trying to make something work. The story starts when I need to run a .jar file on the server which basically does one simple thing, takes an image and overlays text on it. Which to be honest it seems idiotic, the dev I am working with doesn't use PHP, but since I am NOT a dev, I thought I would go about it, to make things comfortable, I had to install Tomcat 7.0 so JRE files can run.
Now, while doing that I saw that I was running PPH 5.3 which is EOL, as in outdated and NOT good. So, I thought fuck it, I knew that PHP 5.4 or greater breaks one key software that I use, but I already bought a newer version, so I was confident everything would work.
It didn't, got three build fails and finally resorted to:
Apache 2.2
Php 5.4
Tomcat 7.0
Other variations just failed, or weren't good. Now, since I have found what I am looking for via PHP
http://stackoverflow.com/questions/7569885/overlay-image-with-text-and-convert-to-imageSrsly, it's just.. err damn. I will remove tomcat *like fuck Java* and try apache 2.4 if possible.
If you see things breaking let me know.
Also, Slarti, the task is pretty simple for the script.
A) Parameter is passed via Query string,
A new image file is created and it has TEXT = name, as in name of the person, and the file is saved by the same name, sure it will have duplicates but it's easier for the file to be ron.jpg.
I am going to play with that script tomorrow, pretty sure we have GD and freetype fonts. But Also did install the font I would be using it's TTF btw.
Anyway, it's 3 am I am tired, take care mates
Comments
EDIT: fixed to always set text at (center,bottom).
This will generate a white background jpeg and black text from nothing with: called thisisatest.jpg