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
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
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()
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
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
>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
> --- 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
> >
>
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
>
8 matches
Mail list logo