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?

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.