Reply to topic  [ 5 posts ] 
Dynamic PHP image generation 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
Just finished writing a php script for the Facebook sharing part of my app.

Allows the user to share the sudoku they are playing including an image without actually uploading the image :)

http://oliverfoggin.com/test/index.php? ... 0801700460

Image

The board is generated from the boardstring parameter passed in to it :D

Woop woop!

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Tue Apr 10, 2012 10:25 pm
Profile WWW
What's a life?
User avatar

Joined: Thu Apr 23, 2009 8:25 pm
Posts: 10691
Location: Bramsche
Reply with quote
Why use a dynamic image? Surely setting up the grid with divs would be easier? There is nothing about the board that requires it to be an image, other than maybe the font choice...

_________________
"Do you know what this is? Hmm? No, I can see you do not. You have that vacant look in your eyes, which says hold my head to your ear, you will hear the sea!" - Londo Molari

Executive Producer No Agenda Show 246


Wed Apr 11, 2012 4:18 am
Profile ICQ
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
I'm going to use it as the thumbnail when posting a link onto Facebook.

For that it needs to be an image.


---
I am here: http://tapatalk.com/map.php?yz3rxy

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Wed Apr 11, 2012 6:02 am
Profile WWW
Spends far too much time on here
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 4876
Location: Newcastle
Reply with quote
Can't be that hard, it's relatively simple to do in asp.net after all ;)

_________________
Twitter
Charlie Brooker:
Macs are glorified Fisher-Price activity centres for adults; computers for scaredy cats too nervous to learn how proper computers work; computers for people who earnestly believe in feng shui.


Wed Apr 11, 2012 8:35 am
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
finlay666 wrote:
Can't be that hard, it's relatively simple to do in asp.net after all ;)

In the end it was only around 10 lines of code.

Create image from background image.
For each number in the string.
If not 0 then work out coords of where it goes and place it on the image.
output image.

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Wed Apr 11, 2012 9:18 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.