Re: [PHP] Thumbnails in database

2004-01-17 Thread Daniel Guerrier
Why create thumnails? You can resize the images on the fly when needed. --- Kevin Waterson [EMAIL PROTECTED] wrote: I am storing some images in a database. No problems there. But how can I create a thumbnail do store in the db also without having to create the thumbnail image on the file

Re: [PHP] Thumbnails in database

2004-01-17 Thread Robert Cummings
--- Kevin Waterson [EMAIL PROTECTED] wrote: I am storing some images in a database. No problems there. But how can I create a thumbnail do store in the db also without having to create the thumbnail image on the file system first? Kind regards Kevin -- PHP General

Re: [PHP] Thumbnails in database

2004-01-17 Thread Mike Migurski
Why create thumnails? You can resize the images on the fly when needed. It's generally good practice to trade CPU for disk space, where possible. - michal migurski- contact info and pgp key: sf/ca

Re: [PHP] Thumbnails in database

2004-01-17 Thread Kevin Waterson
This one time, at band camp, Daniel Guerrier [EMAIL PROTECTED] wrote: Why create thumnails? You can resize the images on the fly when needed. This would be too expensive. I need to store the thumbnails in the database. So, I need to resize the image at the same time as I store it. I can do

Re: [PHP] Thumbnails in database

2004-01-17 Thread Peter Vertes
On Sat, 2004-01-17 at 16:44, Kevin Waterson wrote: Why create thumnails? You can resize the images on the fly when needed. This would be too expensive. I need to store the thumbnails in the database. So, I need to resize the image at the same time as I store it. I can do this and save

Re: [PHP] Thumbnails in database

2004-01-17 Thread Toby Irmer
http://www.sum-it.nl/en200319.php3 quote Create thumbnail a.. Cropping and scaling a photo is surprisingly easy with PHP. b.. Unfortunately the functions imagecreatetruecolor() and imagecopyresampled() exist only since PHP 4.0.6 using GD 2.0.1. Older PHP version supports the functions

Re: [PHP] Thumbnails in database

2004-01-17 Thread Jason Sheets
The latest version of GD adds support for opening an image from a pointer to the C/C++ API but that support is not in PHP. It is recommended to create the thumbnail on file upload using the $_FILES array to get the temporary file name, if you need to create a thumbnail from a file only in the

Re: [PHP] Thumbnails in database - SOLUTION

2004-01-17 Thread Kevin Waterson
This one time, at band camp, Kevin Waterson [EMAIL PROTECTED] wrote: I need to store the thumbnails in the database. So, I need to resize the image at the same time as I store it. Ok, so the secret here is output buffering // prepare the image for insertion $imgData

RE: [PHP] thumbnails

2003-05-29 Thread Joe Stump
I'd definitely generate them on the fly for him. I personally use the *NIX program convert which comes with imagemagick. It works great and is easy to use. General Steps: 1.) Copy big image to location 2.) Use convert to make a thumbnail and name it 't_'.$image_name 3.) Put image name in a db

Re: [PHP] thumbnails

2003-05-29 Thread CPT John W. Holmes
I know thumbnails have been discussed and I have looked at the archives, I am just looking for opinions. I am doing a small website for a used vehicle dealer. I need to make it as easy as possible for him to add new vehicles. I plan to just give him a form for the information, and a place to

Re: [PHP] thumbnails

2003-05-29 Thread bbonkosk
Hello, I did a family photo gallery, and from my experiences it would be best if you handle the thumbnail generation during the upload process. Just make sure you have a naming convention or link the thumnail into your repository/DB so you don't loose that space when you delete the record.

RE: [PHP] thumbnails

2003-05-29 Thread Edward Peloke
thanks for all the info, I am doing this project this week (hopefully) so I am sure I will have more questions! Eddie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 7:14 AM To: Edward Peloke; [EMAIL PROTECTED] Php. Net Subject: Re: [PHP

Re: [PHP] thumbnails

2003-05-29 Thread Dallas Goldswain
Hi , I have mailed you some code i use to make thumbnails etc. It only manipulates the image once, then stores a thumb and streams it to the page when requested Regards Dallas Goldswain Technical Director Web|Genetics / www.development.co.za Regards [EMAIL PROTECTED] wrote in message

RE: [PHP] Thumbnails

2002-06-10 Thread John Holmes
Why reinvent the wheel? http://gallery.jacko.com/modules.php?op=modloadname=Newsfile=index or... http://gallery.sourceforge.net ---John Holmes... -Original Message- From: Mantas Kriauciunas [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 9:48 PM To: PHP General List

Re: [PHP] Thumbnails from Binary DB info.

2002-04-29 Thread Jason Wong
On Tuesday 30 April 2002 09:49, Shane wrote: Greetings folks. I'm looking for a solution to make thumbnails from my binary files inside my mySQL DB. Can anyone give me some direction for options besides Image Magick? Manual Image functions -- Jason Wong - Gremlins Associates -

Re: [PHP] Thumbnails and PHP

2001-01-30 Thread Brian Clark
Hello Todd, (TC == "Todd Cary") [EMAIL PROTECTED] uttered: TC If I do table width="100%" and td width="750" all works fine - TC the img's "word wrap". But, when I do table width="100%" and TC td width="100%", I get a horizontal scroll bar and the img's TC go off to the left. Just leave out

Re: [PHP] Thumbnails and PHP

2001-01-27 Thread Brian Clark
Hello Todd, (TC == "Todd Cary") [EMAIL PROTECTED] coined: TC What is the best way to display thumbnail photos and their titles TC with HTML/PHP? Table? Sure.. tables are good. Or you can display them in one long vertical line.. or.. Explain what you mean. If you mean just what the sentence

Re: [PHP] Thumbnails and PHP

2001-01-27 Thread Markus Fischer
On Sat, Jan 27, 2001 at 02:14:21PM -0800, Todd Cary wrote : What is the best way to display thumbnail photos and their titles with HTML/PHP? Table? The html way would be to just include the photos with a small WIDTH and HEIGHT attribute. The php would be to read the file and use