Newbie / Image Resize

Discussion in 'PHP' started by dans107, Feb 9, 2008.

  1. #1
    Hey,

    I'm a real newbie to PHP, so bear with me.

    Basically, I have a website where people need to upload an image. Currently, they can upload an image of any size.

    I want to make it so the user can upload it as any size, but it's then automatically resized to a smaller size if it it's bigger than the limits I set.

    Now, I've found a function that allows me to do this if I define a single image, my problem being that I could do with just defining a single folder, and the function then resizes all images in that folder.

    Is there anyway of doing that?

    Apologies if that a) makes no sense or b) is an obvious question. I'm a real newbie to PHP.

    Cheers

    Dan
     
    dans107, Feb 9, 2008 IP
  2. yovishnurulez

    yovishnurulez Banned

    Messages:
    422
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can do it with a Image gallery script. Do you need it??
     
    yovishnurulez, Feb 9, 2008 IP
  3. decepti0n

    decepti0n Peon

    Messages:
    519
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can use your function that resizes one image, and go through the folder and apply it to each.

    example #2 is a quick way to go through them.
     
    decepti0n, Feb 9, 2008 IP