Results 1 to 5 of 5
Thread: PHP Image Manipulation
Jun 10, 2005, 17:47 #1
PHP Image Manipulation
I need help on manipulating images with PHP.
This is my idea:
Create a photo gallery by using an image of a blank Polaroid as the background and overlaying the displayed photo within the blank part of the Polaroid. In other words, every image within the photo gallery would look like a Polaroid photo.
Of course as a bonus (after the image has been placed within the Polaroid background), I’d like to write a custom title within each photo. I know how to match images with text using a MySQL database, but how can I grab everything from the database and slap it all into one image, all while using my own custom font??
I know this is A LOT to reply to all at once, but any help would be awesome. I'm not new to PHP, but I am new to image manipulation within PHP, so be gentle.
Jun 10, 2005, 23:15 #2
- Join Date
- Jan 2004
- New York
- 0 Post(s)
- 0 Thread(s)
There are a lot of photo manipulation tutorials. There is a good one on SitePoint. It is basically the same as manipulating a text file. There is a variable that is the file handler (the image) and you use that handler as one of the parameters in the many functions.
Image manipulations deal with a lot of coordinates so you will have a lot more parameters to enter.
Also the easiest way to do the Polaroid background is to have a premade background image and put the new one on top (probably after some resizing). Adding text shouldn't be such a different experience.
Jun 10, 2005, 23:43 #3
Jun 11, 2005, 23:13 #4
Jun 12, 2005, 00:01 #5
ok here's what
1. look up "rounded rectangles" on sitepoint's tutorials.
2. use GD only to generate that custom font text for the photo caption, RTFM for reference.
3. then get some css lessons on image placement, padding, borders and use it to put the image in the "polaroid-photo-border" looking box.
If that didn't make sense, send me the polaroid image files with the font file and anything else that might be required.