Jump to content


Photo

PHP Image upload


  • Please log in to reply
4 replies to this topic

#1 laide234

laide234
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts

Posted 16 July 2006 - 10:05 AM

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 image.jpg.
However I want the width of image.jpg to be set to 240 pixels, and for a thumbnail of image.jpg, which I shall call image_t.jpg to be also created in the upload folder and set to a width of 75 pixels.

Please help.

#2 GingerRobot

GingerRobot
  • Staff Alumni
  • Advanced Member
  • 4,086 posts
  • LocationUK

Posted 16 July 2006 - 10:07 AM

There are two tutorials for this sort of thing on this website:
http://www.phpfreaks...orials/36/0.php
http://www.phpfreaks...orials/78/0.php

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

#3 laide234

laide234
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts

Posted 16 July 2006 - 10:27 AM

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!  ;)

#4 litebearer

litebearer
  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 16 July 2006 - 10:28 AM

This might be of some help...

http://www.nstoia.co...esize/index.php

Lite...

all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture

#5 laide234

laide234
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts

Posted 16 July 2006 - 10:59 AM

Three cheers for litebearer!!! ;D ;D ;D

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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users