[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • Last Modified:

how to assemble a number of gifs to one graphic?

I want to make a gif, with ready to use pieces. The problem is similar to the graphic used in this url:
http://www.intellicast.com/weather/ams/content.shtml
The weatherforecast in this page is made up with ready to use graphics, that are combined into one single gif-file.
How did they do that?
0
bdeleeuw
Asked:
bdeleeuw
  • 5
  • 3
  • 2
  • +5
1 Solution
 
joakimfCommented:
How about Copy and Paste, it can´t be any harder than that......
0
 
bdeleeuwAuthor Commented:
Intellicast has to do over a hundred of these forecasts, just as I have to do more then hundred of these graphics om a dayly basis. So there must be a more efficiënt way of doing so, maybe through a program written in VisualBasic.
0
 
MorFFCommented:
I've used a product called DICER to split a larger image down into smaller ones.  This sounds like it is the other way around from what you want tho'.

Can you not use tables on your webpage to make them appear as if they are a single image, to save the gluing together?

Cheers - MorFF
0
Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

 
MasseyMCommented:
I took a look at the page you mentioned.  the graphic doesn't seem to be "packed".  To me, it looks as though it is generated via a script or program on the server which "splices" multiple graphics together.  

- Matt
0
 
bdeleeuwAuthor Commented:
Yes, there must some sort of a program that does these things. What I want to know is either what program or where can I find the specifications needed to write such a program myself.
0
 
MasseyMCommented:
What are you trying to set these up for?  Maybe this would help to answer the question..

0
 
bdeleeuwAuthor Commented:
What I want to make is a graphic, that automatically is produced by a program, three times a day. The graphic is a bar-diagram, assembled from (stock)data somewhere on the net. Because the graphic will be incorporated in a page, made for students, I want it to be a rather fancy one, with some sort of drawings incorporated in them. Those drawings should differ according to the state of the data.
0
 
JaccoCommented:
It is quit easy make a program that does what you say. For example in Delphi it would be very easy to make. What you need is define a scripting language which does the following:

*** start of script ***
output c:\main.gif
c:\pic1.gif 0,0
c:\pic2.gif 100,0
c:\pic3.gif 0,100
c:\pic4.gif 100,100
*** end of script ***

The program you'd have top make should accept 1 parameter, the script file name.

merger script1.txt

I could make the program for you. It really would be something quit easy. The only thing is that I have to write the SaveToGif part... That is the hard part. (I already wrote the LoadFromGif once.

Regards Jacco
0
 
AfroNinjaCommented:
I would venture to say that how to do this depends on how the page will be updated.  If you intend to update the page yourself on a regular basis, then you can simply create a series of "gif bars" that can then be assembled together in a series when you need them.

It is also possible to create a series of gif images that have the appearance of being a single picture, but are several portions of images.  Through creative use of tables and / or frames, you can then arrange these images in such a way as to allow them to appear as a unified whole.

If you're looking for something to create a unique gif image on a day-to-day basis, you'll have to get inside the structure of the actual gif specification and write code that then creates what you need based on that.  It actually wouldn't be too hard (he says laughingly) to do, once you got the basic structure worked out.
0
 
doolyCommented:
I'd use the table or frames route myself, unless the cells will have GIFs of varying sizes inserted.
0
 
bdeleeuwAuthor Commented:
I have solved the problem by using multiple gifs in a table. I don't know if this works for netscape or for early versions of the explorer, but in MSIE4 it looks good enough.
Still I think that creating a single gif from all the different items is the best solution.
0
 
MorFFCommented:
Does that mean I came up with the solution you used then?

MorFF
0
 
bdeleeuwAuthor Commented:
Sorry MorFF,
I still think my question is not answered. I want to glue the different gifs together into one. That's what the question is all about.
0
 
ckayterCommented:
First, it is apparent from looking at the weather site (their USA map is an even better example) that the GIF is generated by a graphics application being fed information from a database where IF Condition=Cloudy THEN cloudy.gif X=10, Y=20, etc. is used to indicate which element should be used and where the element should be positioned in the image.

For your application, I might suggest you check the Microsoft SiteBuilders Workshop for DHTML. DHTML will allow you to position images at exact X,Y coordinates, overlay them with other images, and even assign background colors to specific areas in your chart.

Alternatively, you may find that OLE compliant applets such as MS Datamap (for a weather site) or MS Graph or Chart, used in conjunction with data downloaded to a database application such as Access, will do the trick. I might have to do a little "what iffing" on your application... If I find an easy answer, I'll post it here.

0
 
MasseyMCommented:
Here you go,  a tutorial on how to use Excel and Active Server Pages to create graphs and things:

http://www.avatarmag.com/columns/serverside/default.htm

This is perfect for what you ar ewanting to do (I think)..
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 5
  • 3
  • 2
  • +5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now