Results 1 to 2 of 2

Thread: Resizing an image through PHP

  1. #1
    Join Date
    Jan 2006
    Location
    Wouldn't you like to know =P
    Posts
    13

    Resizing an image through PHP

    Ok, I'm trying to make a thumbnail image of every image for my image gallery when it gets uploaded. Do you know if there's a way I can duplicate an image through PHP to make a thumbnail?

    I don't want to use height and width functions of HTML images because you would still have to load the full image, which would use bandwidth and take a while.

    Thanks!

    -0_o

  2. #2
    Join Date
    Apr 2006
    Posts
    74
    I think you would need the GD library installed on your server. Run a .php page just with phpinfo() on it to get a list of the libraries installed if we are talking about not locally hosted.

    For info on the GD library and how to use it - php.net documentation - image functions

Posting Permissions

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