Reputation: 15494
i have an array in php who contains pictures url (jpg pics). When you execute the php script this array is filled with url of pictures (for this example lets say 4 pics). At this point i want to equally distribute the pics in the space and generate a single one, like:
Upvotes: 1
Views: 257
Reputation: 16962
You may want to scale down to a set maximum, in which case you need to introduce a scale multiplier into the equation. You might also want to crop to a square size to reduce empty space induced from having pictures of different aspect ratios.
Keywords: getimagesize, imagecreatetruecolor, imagecopyresampled.
Upvotes: 3