Jump to content

PHP Image upload


laide234

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.
Link to comment
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!  ;)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.