PDA

View Full Version : Upload and Resize Script


JacobM6
04-25-2007, 08:02 PM
Im working on a flash gallery to present my photography work to visitors, friends, and family. I have the design and coding done for the gallery, but would like to make it quicker to add pictures.

Right now I have 4 image folders that this gallery uses; large, medium, small, and thumb. All have their size restrictions so that the gallery presents itself nicely. I am having to resize each picture by hand (Photoshop) 4 times each, which takes a lot of time.

What I would like to do is have a web-based upload and resize script. So when I upload the original image, it will resize it the 4 times automatically.

For example:

I upload IMG_001.jpg through this unloader. It takes the image and resizes it 4 times to the sizes I tell it to and then saves those to a single folder on my host.

I hope that made sense!

Does anyone know if such a script exists? Should I use a different language? If anyone is willing to help me make this, I will pay (via PayPal) for it. Just give me some estimates.

Thanks, Jacob

Fumigator
04-25-2007, 08:23 PM
This is indeed possible-- with the GD library functions.

Homework:
imagecreatetruecolor() (http://us.php.net/manual/en/function.imagecreatetruecolor.php)