Jump to content


This topic is now archived and is closed to further replies.


question about Dynamic Images

Recommended Posts

Hey all
I dont ask for much help here, but Something I am thinking off

I have several images
One: Background, Green (with other things on there, not plane green)
Two: A building from the top
Three: People from the top
More but u dont need to know all the details

What I want to do, is use Co-ordinates, and place a building say px 0.0
Then people say px 20.0

This information is grabbed from a Database
I do not want to save the image, as the image will be unique to the person viewing, and good, there could be a lot of images.

So I need to show the images on the browser
<img src='myimage.php' />
Am I right?

How would I set the image, to create a new image, by adding imageTwo.jpg to ImageOne.jpg at Pixel Point 0.50 (or 45.45)..
Again that information would be in the database

As I said, completly dynamic, completly unique

Any ideas.

I am not looking for the code, just the functions, and if it is ok to use
<img src='myimage.php' />

Share this post

Link to post
Share on other sites
It is possible to use a .php page as the source of an image as in your example.

Most people use the GD Image functions for dynamic images.  [url=http://www.php.net]http://www.php.net[/url] provides details of these in their 'documentation'.


Share this post

Link to post
Share on other sites
As i said, if someone could name the correct function

I looked at imagecopymerge(), but it dont seem to be right, seems to be more for watermarks

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.