Forum Moderators: coopster

Message Too Old, No Replies

Imagecopy Question

php gd imagecopy imagemerge question combine and resize images

         

BSweezy

7:08 am on Apr 12, 2007 (gmt 0)

10+ Year Member



I'm trying to make a site that lets the visitor submit an image of any size, select a "footer" image to add to it and end up with a nice combined jpeg resized to a max height of 500 pixels or so.

I'm new to php and GD, but I'm thinking that what I should do is

1. call the two images (main and footer)
2. take the dimensions of main
3. make a new image with the newimage_y = main_y+footer_y+3 (for a little space)
4. imagecopy the main into newimage at 0,0
5. imagecopy the footer into newimage at main_y+3

Where should I do some resizing? Does this make any sense?

phparion

9:56 am on Apr 12, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Where should I do some resizing?

last step should be of resizing.. once you have mixed three images i.e header,main and footer images, then open the final image again and do resizing...