有一个仅由图像组成的表,我可以将表中的所有图像合并为一个图像吗? [关闭]

I got a lot of small images that i put into a table, they are positioned like so:

image2 image3
image1 image4
and so on

All the images form one big image. There are no other elements in the table, no borders or anything, only images that are next each other. I was wondering if i could merge all table elements into one big image. How can i do this?

Well, first thing, why did you sliced them, if you need them in single image?

If you dont own the images on your server, you should simply use photoshop or other tool to merge the images. (by other tool I mean PRINT SCREEN button on keyboard)

You need to use GD or image magic.

  1. Get all images and their sizes
  2. Calculate the new image size based on other images
  3. Create blank image with that size
  4. copy image re-sampled in to new image, positioning them to right X, Y cordinates
  5. Save the image