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.
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
Use this function: http://awesomephp.com/?Tutorials*15/Create-image-thumbnail-and-store-it.html You can also loop through all images using php glob: print_r(glob('images/*.gif')); PHP: Peace,
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.