PHP GD - Merge multiple images in tiled layout
问题 I'm working on a class that takes an array of images by src and merges them into a single tiled image, similar to the following image; The only issue is the images provided to the class aren't of set dimensions like in the image above. The following state of the class creates a vertically stacked list of the images without gaps (an example shown below), and calculates the required height of the export image automatically (calculated in $total_height ). I imagine gaps are inevitable in the