Auriga Posted May 28, 2007 Share Posted May 28, 2007 Hi! I have a website that will show some pictures along with reviews. Both reviews as pictures will be written & uploaded by the visitors of the website. Each review will have 1 or more pictures attached to it. At the moment, I'm just attaching the link to the image, and showing it to the user by using <img src="$link">. However, this link is to the original picture (which can be quite big). To conserve bandwidth, I'd like to create thumbnails for each of these images. I've found some useful resizing algorithms, which i intend to run in batch using a chronjob. Now, i'm facing a problem though: How can i convert all these images at once to thumbnails, without having to download them to my PC and uploading them manually to my server? So basically, I'd like a script that will: given a list of links to images, i'd like to loop through them, resize each of them, and upload them to a folder on my server. Is this at all possible? And if so, can you give me some tips to get started? At the moment, i only see solutions that involve manual interaction (using <input type="file" ...>). That's not what i'd want to use... Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/53323-upload-images-to-server/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.