Create a picture with GD containing other images

Posted by Jensen on Stack Overflow See other posts from Stack Overflow or by Jensen
Published on 2010-05-28T23:48:31Z Indexed on 2010/05/28 23:52 UTC
Read the original article Hit count: 157

Filed under:
|
|
|

Hi,

I would like to create a picture in PHP with GD composed by different other pictures. For example I have 6 pictures (or more) and I would like to create ONE picture who contain these different pictures.

The Difficulty is that my final picture must have a fixed width and height (304x179), so if the different pictures are too big they must be cut. This is an example from IconFinder :

This picture have 6 images

This picture is composed by 6 images, but the 3rd bird (green) is cutted, and the 4, 5 and 6 are cutted in the bottom. This is what I want, can you give me some help to write this code in PHP ?

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about image