
-----------------------------------
ProgrammingFun
Tue Feb 22, 2011 8:04 pm

Using php to generate an image
-----------------------------------
Hi,

I have to create a voting system for my school for which I need to output an image version of the table shown at http://test.victoriaparkci.com/poll2/
Is there any way that PHP can do such a thing? If so, how? Online tutorials were of no help for a noob like me  :vi: 

Thanks for the help.

-----------------------------------
Sur_real
Tue Feb 22, 2011 9:17 pm

Re: Using php to generate an image
-----------------------------------
Don't worry, I don't think there is such a thing. :D
Although you can do some research on imagegrabscreenimagegrabwindow. Personally, I never bothered with them so dunno if they work.

I would just recommend doing it the old fashion way and create the image using PHP on-the-fly.

-----------------------------------
Tony
Tue Feb 22, 2011 10:00 pm

Re: Using php to generate an image
-----------------------------------
Don't worry, I don't think there is such a thing. :D
Sorry, here it is :lol: 

ImageMagick -- with bindings for just about everything, including PHP; http://www.imagemagick.org/script/api.php?ImageMagick=ea73rvnl8squ11fae2soiqitb2#php

-----------------------------------
Sur_real
Tue Feb 22, 2011 10:20 pm

Re: Using php to generate an image
-----------------------------------
O gawd how embarrassing :oops: 
never heard of imagick but it does seem more comprehensive than GD (if they're even comparable). I wonder why I never found this before or was ever taught it...

-----------------------------------
ProgrammingFun
Wed Feb 23, 2011 8:19 pm

Re: Using php to generate an image
-----------------------------------
Thanks...on a related note, I want the following script to run before the page is redirected buy I keep getting an error:


