Gossamer Forum
Home : General : Chit Chat :

PHP, GD, and multiple files.

Quote Reply
PHP, GD, and multiple files.
Images that are submitted are resized to a standard size regardless of dimentions and then I make a thumbnail (So there are two images that I am creating; a standard size image, and a thumbnail). Everything worked fine. Now what I want to do is allow for more then one file to be uploaded.

I thought that a simple 'for' loop and an array would solve my problem but no dice. Firstly it processes the first image but the first resize turns out blurry, or not at all, it's kinda weird and the thumbnail is fine but second doesn't seem to be getting processed at all. It seams to have a case of PMS ever since I tried to allow multiple uploads

The code is attached in a text file;

You can try the script and what it is doing so far here:
http://www.trilliandesigns.com/resizing/image.php