asmith Posted May 12, 2009 Share Posted May 12, 2009 Hi, With imagecreatefromgif or similar we create images out of an existing file. How do you put an smaller image into this? for example if imagecreatefromgif('file.gif') is 200 x 200. How do you place a 50 x 50 image on it at X:10, Y:100 ? Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted May 12, 2009 Share Posted May 12, 2009 I made something like this for creating a watermark on top of an image Here is the code I used: http://phpsnips.com/snippet.php?id=105 It has some built in defaults: TOP_LEFT TOP_RIGHT BOTTOM_LEFT BOTTOM_RIGHT CENTER It also allows for exact placement: 150 (x value) 150 (y value) Give it a try and let me/us know what you think. Quote Link to comment 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.