Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combine GIFs into a single file

Status
Not open for further replies.

vadg

Technical User
Joined
Mar 4, 2007
Messages
9
Using GD::GRAPH to pump out some GIF files.

Is there any way to combine these individual files into a single (larger, multi-page) Gif file?

 
I've never heard of a multi-page gif file. Is that really possible?

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
I don't know? why wouldn't it be?

 
I think he's talking about something along the lines of, one large image that might be several thousand pixels in height, so that when printed out it would print across several pages.

I know generally how you would do this. After having saved them all to .gif files, create new GD objects that read each of the images. Add up all the heights (or widths, if you want a wide image rather than a tall one). Create a new image whose height (or width) is the total that you added up from all the images.

Use the copy commands to copy each of the original images into the new large image, one on top of the other, by manipulating a running X or Y coordinate. For each graph you add to the image, add that graph's height to the running X value, and insert the next graph at that X coordinate.

And then save the new larger image.

-------------
Cuvou.com | The NEW Kirsle.net
 
I don't think that is what he meant, but it's probably moot at this point as he seems to have abandoned the qestion.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
I'm still interested in this. You describe what I want to do. I have x number of GIFS, all the same length/width in pixels and want to combine them all into a larger file that retains their original size.

Where are the read and copy commands your refer to in GD::GRAPH? I'm looking at some documentation and don't see anything along the lines of what you're referring to?

Thanks
 
Thanks

Let me see if I can make this work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top