Jump to content


Photo

question about Dynamic Images


  • Please log in to reply
2 replies to this topic

#1 onlyican

onlyican
  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 21 August 2006 - 11:50 AM

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

Situation:
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
ect

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' />

Tell me the problem, I will try tell you the solution

#2 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 21 August 2006 - 11:54 AM

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.  http://www.php.net provides details of these in their 'documentation'.

Regards
Rich
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

#3 onlyican

onlyican
  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 21 August 2006 - 12:07 PM

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
Tell me the problem, I will try tell you the solution




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users