Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie: Thumbnail Creation

Status
Not open for further replies.

bentleykf

Programmer
Apr 29, 2002
59
0
0
AU
I just want to make thumbnails, good looking thumbnails from jpeg or gif files that are uploaded over a form. Why can't i find a good class file to do this for me? So i can just call the class to make the thumbnails and save it with maybe an extention in front of the name like "pre_"? Does anyone know of/can lend me something quite like this?
 
Hi,

Yes, you can do it -IF you have the GD library installed!

You can find out if you do by running this script:

Code:
<?php
echo phpinfo();
?>

Now, look up the [tt]imagecopyresampled[/tt] function at


That'll get you started.

Hope you find it useful §:O)


Jakob
 
Another possibility is imagemagik - just Google for it.
However, GS seems the best solution if it is installed on the server you use.
If you PHP is not compiled with it it could also be dynamically loaded, given it is on the system.
 
d'you mean GD?
I've been using that with a php class file to make thumbnails of the uploaded images and it doesn't do a good job. I'll read up on GD anyway to see whats wrong.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top