galvin Posted November 24, 2008 Share Posted November 24, 2008 With imagecreatefromjpeg ( string $filename ), is there a way to create ONE large image from MULTIPLE smaller images? It seems like it only allows you to refer to ONE other file to create your new image. Quote Link to comment https://forums.phpfreaks.com/topic/134052-gd-question-create-one-large-image-from-multiple-image/ Share on other sites More sharing options...
corbin Posted November 24, 2008 Share Posted November 24, 2008 You can have multiple image resources at one time.... So, you essentially just need to do the following: -get a list of the images -store resources of the images in variables -get the width/height of each image (do this as you're storing them, or perhaps before) -create a new image resource (imagecreatetruecolor) of the total width and height of your images -Place each image into the new resource. Quote Link to comment https://forums.phpfreaks.com/topic/134052-gd-question-create-one-large-image-from-multiple-image/#findComment-698173 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.