Jump to content

Multiple images into ONE large image using PHP?


galvin

Recommended Posts

If a user uploads, say, NINE jpeg images to my server, can I use PHP to then create ONE large jpeg image that contains all nine of those images? 

 

In other words, say each individually uploaded file was 100 x 100 pixels.  I would want to create ONE larger image that is 300 pixels wide by 300 pixels high and combines all nine smaller images (in a 3 by 3 grid essentially).

Picture a Tic-Tac-Toe board as being the final single large Image with each individual smaller image being in one of the sections of the Tic-Tac-Toe board.

 

Is this process of combining multiple images into ONE image possible with PHP?

 

Ok, thanks.  I don't see anything about MULTIPLE images though. Can you give me any insight on how to create an image from MULTIPLE images.  I imagine I would have to use the function imagecreatefromjpeg() but is it OK to put more than one souurce file as a parameter?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.