Jump to content

[SOLVED] Help with Php Image


Brink Kale

Recommended Posts

I've read the tutorial "PHP Add Text To Image" and I was able to understand it. I even got the codes working and modified as I wanted. My original query ( to google) was about actual image layers.

 

Example, if I had images a, b, c and d

Images a and b would be something like a background layer that you can choose between. C and d would be a top layer above the background layer that would be a second option. How do I get Php to compile these options into a single image with no visible layers.

 

I would like to use this knowledge to make an image that could dynamically change according to the time of day of the user. Much like the one used on Gmail's "Tea House" theme.

http://mail.google.com/mail/images/2/5/teahouse/6am/footer_bg.jpg

 

I am fairly new to Php and would appreciate any help given on the matter.

76b455a9.gif

Link to comment
https://forums.phpfreaks.com/topic/163213-solved-help-with-php-image/
Share on other sites

Well, the simplest thing to do is create individual images for each, obviously this is what Google does :P

 

But if you really want to layer images, I bet you will have to use png as it has support for layers and transparency.  Take a look at this demo and see if it is what you are trying to do:

 

http://www.codewalkers.com/c/a/Miscellaneous/Overlapping-Images-with-GD/1/

Archived

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

×
×
  • Create New...

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.