Current location: Hot Scripts Forums » Programming Languages » PHP » Generating thumbnails: to save or show only?


Generating thumbnails: to save or show only?

Reply
  #1 (permalink)  
Old 08-11-03, 04:39 AM
borgo borgo is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Generating thumbnails: to save or show only?

I need script for generating thumbnails, I found "phpThumbnailer class" http://www.hido.net/projects/phpThumbnailer and I like it, because it works and it's pretty easy to understand. But it doesn't save the thumbnails to a files, it just generates and displays them where necessary.
I'm developing a real estate website with a lot of photos, and I'm wondering if it won't be to much to generate thumbnail every time it loads the picture. For example there will be listing with 7 full images (7 x 70kB), and I will need to display it with all thumbnails, wouldn't it be better to load the thumbs as files. Thanx!

Last edited by borgo; 08-11-03 at 04:44 AM.
Reply With Quote
  #2 (permalink)  
Old 08-12-03, 09:38 AM
kickinhard007's Avatar
kickinhard007 kickinhard007 is offline
Newbie Coder
 
Join Date: Aug 2003
Location: Manchester, UK
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
try this....

BACK UP class.thumbmail.php before you do anything!

open the class.thumbnail.php file and find this text

ImageGif($new_image);

change it to...

ImageGif($new_image, $new_image);

then find...

ImageJpeg($new_image);

change it to...

ImageJpeg($new_image, $new_image);

then find...

ImagePng($new_image);

change it to...

ImagePng($new_image, $new_image);

=============================
i'm not 100% sure it works...let me know!
=============================
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
save as window/download files sasi ASP 1 08-19-03 04:03 AM


All times are GMT -5. The time now is 05:17 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.