Main Content

Merging pictures using PHP and GD

Archive - Originally posted on "The Horse's Mouth" - 2006-01-13 03:27:37 - Graham Ellis



I wanted, regrettably, to fade (tear) one picture into another - a train at Melksham into a picture of a disused railway trackbed. We have one of those nearby at Seend, where the Trowbridge - Devizes - Reading - London train service used to run. Here's another 2 options I looked at:



and



The GD library in PHP provides a number of useful graphics and manipulation commands - can you believe that the images above are generated by programs that are 17 lines / 400 bytes long! See fade source code and tear source code and xtipple xource code