Image resize directly on the server folder

Discussion in 'Programming' started by jennypretty, Nov 30, 2008.

  1. #1
    Hello,

    I have a dating site. Some members upload big images from their camera on my site. They don't know how to resize the image before uploading on my dating site.

    I like to know if there is any script to run automatically on the server to resize the large images once a day or once a week? when I search on google, there is only script to resize images on local computer only.

    I have a dating folder www.mysite.com/photos/

    Can anyone please help?

    Thanks.
     
    jennypretty, Nov 30, 2008 IP
  2. milesbparty

    milesbparty Peon

    Messages:
    148
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you using PHP? If so you can use the PHP GD library (note that the GD library is not built into PHP by default. You, or your hosting company, need to turn on support for it before you can use it).

    The GD library includes functions to resize images (among other nifty things). Documentation on how to use it is on php.net:

    http://www.php.net/manual/en/book.image.php
     
    milesbparty, Nov 30, 2008 IP
  3. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #3
    Barti1987, Nov 30, 2008 IP
  4. jennypretty

    jennypretty Active Member

    Messages:
    584
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Let me ask my hosting to see if they turn on this function: PHP GD library

    I like an automatic function because I do not know much about php.

    thanks.
     
    jennypretty, Nov 30, 2008 IP