SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 1999
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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!
    Ian Chiu
    Editor in Chief
    http://www.usbworkshop.com/

  2. #2
    SitePoint Member
    Join Date
    Oct 2000
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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!

  3. #3
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •