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 =adds

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 d

Re: [PHP] Thumbnails in database

2004-01-17 Thread Toby Irmer
http://www.sum-it.nl/en200319.php3 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 imagecreate()

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 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

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/cahttp://mike.teczno

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 > > >

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 >