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?
new image from a big image and insert into html
Moderator: General Moderators
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
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:
example:
Code: Select all
<img src="processing_script.php?some=parameters">