Jump to content

Archived

This topic is now archived and is closed to further replies.

laide234

PHP Image upload

Recommended Posts

Hello all.
I am new to PHP and am in need of some help.
I am working with an image upload script.
What I want is for users to be able to upload, say [color=red]image.jpg[/color].
However I want the width of [color=red]image.jpg[/color] to be set to 240 pixels, and for a thumbnail of [color=red]image.jpg[/color], which I shall call [color=red]image_t.jpg[/color] to be also created in the upload folder and set to a width of 75 pixels.

Please help.

Share this post


Link to post
Share on other sites
There are two tutorials for this sort of thing on this website:
http://www.phpfreaks.com/tutorials/36/0.php
http://www.phpfreaks.com/tutorials/78/0.php

Ive not tried them myself, but take a look :)

Share this post


Link to post
Share on other sites
Thanks a bunch GingerRobot!! ;D
Those links helped me figure out how to ensure that two separately named copies of the image got to server. Now if someone can just help me figure out how to set the widths in pixels.

Note: These may be GIFs, JPGs, or PNGs. I think the resizing differs for each.

Thanks again GR!  ;)

Share this post


Link to post
Share on other sites
This might be of some help...

http://www.nstoia.com/toh/technical/imageresize/index.php

Lite...

Share this post


Link to post
Share on other sites
Three cheers for litebearer!!! ;D ;D ;D

Thank you. Your code was exactly what I was looking for. Simple and straight to the point.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.