Do any of you know how to resize the image via PHP4?
I want to run my own photo gallery program, but I need the codes to create thumbnails (smaller file size and dimensions).
Thanks in advance!
| SitePoint Sponsor |
Do any of you know how to resize the image via PHP4?
I want to run my own photo gallery program, but I need the codes to create thumbnails (smaller file size and dimensions).
Thanks in advance!
you don't really need any special code for this, just use a plain old html table. the image will automatically be resized to fit inside the cell. just resize the cells to resize the pictures.
go to www.kubmedia.com, a great web page design site, and sign up to be the first to find out when it launches!
progbuc,
That's no good. The whole point of a thumbnail is that it provides for a quick-loading preview of the full-sized image. Just stretching the image down in the browser will still require the browser to download the whole, big image.
usbworkshop,
Information about PHP's image manipulation functions may be found here. The specific function you'll need to perform the resize is ImageCopyResized() (there is sample code provided on the page for the function).
Kevin Yank
CTO, sitepoint.com
I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
Baby’s got back—a hard back, that is: The Ultimate CSS Reference
Bookmarks