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




-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to