Re: Thumbnails in database

From: Date: Sat, 17 Jan 2004 23:36:19 +0000
Subject: Re: Thumbnails in database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174940@lists.php.net to get a copy of this message
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 database you need to read it, write it to a temporary file and then resize it, then do your action with it. Look at tempnam() , it will generate a temporary file name for you to open. Jason Kevin Waterson 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


« previous php.general (#174940) next »