?
Solved

Dynamic Images

Posted on 2003-02-23
8
Medium Priority
?
305 Views
Last Modified: 2008-01-16
I am creating a weather script that parses data from another website and displays it in the format that I want. The problem is I want to retrieve the picture that represents the weather from their site usually just a JPG and I want to insert this image into a dynamic image of of the weather conditions I have created the dynamic layout but I need to be able to insert another picture into this dynamic image. If anyone can help that would be most appreciated. If you want to see what I have done so far visit www.sharppointsoftware.com/weatherimage.php

Thanks!!
0
Comment
Question by:physco
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 7

Expert Comment

by:Big_Red_Dog
ID: 8002897
All I see is "No Zipcode Entered!" when I go to your site...  You'll need to use the graphics package GD if it is available on your installation of PHP or ImageMagic or something else if it is not to combine the two images.
0
 
LVL 7

Accepted Solution

by:
Big_Red_Dog earned 200 total points
ID: 8002918
Here is another Question that answers this nicely:
http://www.experts-exchange.com/Web/Web_Languages/PHP/Q_10710381.html

and if you need to go the ImageMagick route, this question has some insight, but not a lot of other information, on using it:

http://www.experts-exchange.com/Web/Web_Languages/PHP/Q_20224267.html

of course you first have to install it...
0
 

Author Comment

by:physco
ID: 8002921
I am sorry! I have GD and have started creating the image I didn't complete the URL it is this:

www.sharppointsoftware.com/weatherimage.php?zipcode=55901

And basically I can create an image using rectangles, text, circles, etc, what I wanna do though is add another image to this image I am creating, to see what I made using just HTML check out this site

www.diversedesigns.biz

This is the one I created using tables etc, I want to convert this to just a dynamic image, but I need to be able to insert the picture that is shown there into the dynamic image.

Thank you for your response...
0
WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

 

Author Comment

by:physco
ID: 8003003
Thank you Big_Red_Dog I think you have answered my question, but I need to play with it a bit and make sure this is what I need, I see how to get the image but do you know how to place the image INTO the existing image?

Thanks again!
0
 

Author Comment

by:physco
ID: 8003053
You hit the nail on the head and I found the information I wanted... here is the code for anyone else who needs this information


$id = ImageCreateFromGif("http://a799.ms.akamai.net/3/799/388/f01c47511e5c7e/www.msnbc.com/m/wea/i/36/33.gif");

          imagecopymerge ($im, $id, 25, 50, 0, 0, 35, 35, 100);

$im was the original image I created and $id was the new image I captured.

Thanks again Red_Dog I guess I just wasn't looking for the right thing!

Adam
0
 

Author Comment

by:physco
ID: 8003055
Thanks again!
0
 
LVL 7

Expert Comment

by:Big_Red_Dog
ID: 8003082
Now that I've seen what you are doing, perhaps using overlays is better.  See this site: http://www.javascriptkit.com/javatutors/dynlay/
0
 
LVL 7

Expert Comment

by:Big_Red_Dog
ID: 8003085
Our messages crossed paths, I think if you are happy with the GD solution, go with it!
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question