thumbnails...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

thumbnails...

Post by Illusionist »

Is it possible to create thumbnails with PHP?? Hmm... maybe that wasn't the best way to ask it. I know how to make thumbsnails with PHP, but tahts saving to my hdd. What i'm really looking for is to create them when a visitors looks at the page.
Ok im making an image gallery type thing, and I want all the images to be teh same size, But i want to upload them and leave their original size so i can link the Thumbs tot he original picture and open it in a seperate window. I've tried just using the width and height properties ont he img tag, but that distorts the images.

So is there a way i can create smaller scaled down images and display them without creating a new thumbnail for it when its uploaded??

Thanks
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Yeah using GD you could, I believe.

Research more @ http://www.php.net/gd
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

Hey Sami, thanks for the link. I kept looking around and found this. And so far its worked just perfect!
Post Reply