Generating thumbnails in PHP

Discussion in 'PHP' started by mateescu, Oct 26, 2007.

  1. #1
    Hello

    I have a site where users have the option of uploading pictures when they make an entry. So I have a bunch of pictures in a sub-directory on the server.

    Whenever someone looks at an entry, the script will generate a link that can be clicked, and that shows the picture in a separate pop-up window.

    What I would like to do is to modify the script so that it will display a small thumbnail of the original picture on each entry.

    Can you help me creating a php function that takes a picture from the server and displays a small thumbnail ?

    Thanks in advance.
     
    mateescu, Oct 26, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Since you cannot do it, you will have to post your code if you want someone here to modify it.

    Otherwise have a look at this page for examples: www.php.net/imagecopyresized
     
    nico_swd, Oct 26, 2007 IP