ballingtonma
05-15-2004, 12:41 PM
Hi, i want a PHP image upload script that will automaticaly create a thumbnail.
Here is the uploaded image for example.
http://www.radiusenterprise.com/001.jpg
Then it should be resized to look like this for a thumbnail:
http://www.radiusenterprise.com/001_thumb.jpg
I think I need GD or something like that but I dont understand it.
Thanks in Advance,
Matt
rrdega
05-15-2004, 04:43 PM
Hey Matt,
This is not quite what you asked for, but I found it quite handy: http://phpthumb.sourceforge.net/
With that, you can upload a full-sized image, and then you code the phpThumb invocation into your source as a part of the <img> tag. It will dynamically create/cache an image resized to your specifications within the php source... i.e., Thumbnail'd if that is what you desire.
ballingtonma
05-15-2004, 06:29 PM
Hi, thanks!
Wouldent it be better to have two images, one as a tumbnail rather that create a thumbnail on the fly, because i will have many screenshots and i was wondering which would be best.
Matt
azizny
05-15-2004, 06:43 PM
easy..
Upload the files and then to generate a thumbnail add _thmb to the image and since u uploaded them, it will be avaiable to see..
image galleries such as 4images and coppermine also are interesting to look at..
Salam,
rrdega
05-15-2004, 08:07 PM
Originally posted by ballingtonma
Wouldent it be better to have two images, one as a tumbnail rather that create a thumbnail on the fly, because i will have many screenshots and i was wondering which would be best. It is difficult for me to say what is "best" for you... But the cool thing with phpThumb is that you can have both! In fact, you can have as many sizes as you want merely by declaring the width or height of the desired rendering. (It will resize proportionately) The resized image will be cached on the server for future use, so each image is only rendered one time, the first time used, for each size.
So, you could easily have a page which renders a series of thumbnails that are a part of anchor tags, which when clicked display a window or page with the full size image. Or even an image that has been "stretched" some, if you like, as it can not only scale down, but also up!
I hope that babble makes sense... If not, check out the description on the Sourceforge project page. The authors of the script do a much better job of describing its functionality!
ilyash
05-16-2004, 07:20 PM
Why dont you make the thumbnail the same as the actual image?
just do.. <img src="cvcxvxv" width="SIZEHERE" height="SIZEHERE">