473,239 Members | 1,484 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,239 software developers and data experts.

Image "stitching" with GD - Help

Hi All

I have (what seems to be) a rather simple problem I'd like to solve
using PHP with the GD library installed. I would like to "stitch"
multiple images together so that they appear next to each other, but
create a new file while doing this. For example, lets say I have 5
images named 1.gif through 5.gif, each containing the digits 1-5
respectively. I would like use GD to place them next to each other in
a new image (1 single image), so they read "12345" when displayed in
the browser. I do not want to have the 5 images simply displayed next
to each other.

Can this be done with GD?

TIA
Rob

Jul 17 '05 #1
1 2989
go****@si.rr.com said the following on 26/06/2005 16:12:
Hi All

I have (what seems to be) a rather simple problem I'd like to solve
using PHP with the GD library installed. I would like to "stitch"
multiple images together so that they appear next to each other, but
create a new file while doing this. For example, lets say I have 5
images named 1.gif through 5.gif, each containing the digits 1-5
respectively. I would like use GD to place them next to each other in
a new image (1 single image), so they read "12345" when displayed in
the browser. I do not want to have the 5 images simply displayed next
to each other.

Can this be done with GD?


Yes.

Create a blank image using createtruecolor() with dimensions big enough
to fit all five sub-images.

Then simply run imagecopy() five times, specifiying the new image as
destination every time, and each of sub-images in turn as source, and
calculate the position of the top-left corner in the destination image
each time.

--
Oli
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: sarah | last post by:
hi all. first time poster so please forgive and maybe direct me to correct group if this is wrong place. tia. i'm after constructing a PHP script to fit within my nuke modules to do this.. ...
8
by: J Krugman | last post by:
I just came across this "pan-able" photo/movie of the Rice testimony before the 9/11 commission: http://www.nytimes.com/packages/html/politics/20040408_RICETESTIMONY/qtvr_popup.html I've never...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.