Page 1 of 1

new image from a big image and insert into html

Posted: Sat Nov 09, 2002 7:18 am
by Kyori
I'm making a game and it's got a map. Whole map is around 800x600 but i only need 180x180 of it at a time to send to client as a background for table. I have 2 options, one is to make 64x64 (4096) 180x180 images which will take around 30MB or use php image functions.

My prob is I can't mix php image functions with doc/html format. Any way this can be possible?

Posted: Sat Nov 09, 2002 10:06 am
by mydimension
probably a good way to do it would be to make a seperate script that would be called in a <img> tag and in the src attribute you would pass it the neccesary parameters.
example:

Code: Select all

<img src="processing_script.php?some=parameters">

Posted: Sat Nov 09, 2002 6:44 pm
by Kyori
thanks, I get the picture. Now, why hadn't that come into my thinking? I'm guessing ur pretty good at prog'ng