RE: [PHP] A black thumbnail.

2006-01-28 Thread Weber Sites LTD
Sent: Saturday, January 28, 2006 4:56 PM To: php-general@lists.php.net Subject: Re: [PHP] A black thumbnail. Hi again: I said: >I'm trying to create a thumbnail from a jpeg stored in a long blob in mySQL. --- berber said: Check out this article : http://www.weberdev.com/ViewArticle

[PHP] A black thumbnail. (Solved)

2006-01-28 Thread tedd
Hi: The following works for me. It takes an image from mySQL (which is stored as a string, duh!) and creates a thumbnail "on the fly". Many thanks for your ideas -- you made me think. tedd $dbQuery = "SELECT image_type, image, image_width, image_height "; $dbQuery .= "FROM pictures "; $dbQ

Re: [PHP] A black thumbnail.

2006-01-28 Thread tedd
Hi again: I said: I'm trying to create a thumbnail from a jpeg stored in a long blob in mySQL. --- berber said: Check out this article : http://www.weberdev.com/ViewArticle-3.html This article is for uploading, storing and displaying images from mySQL, but no thumbnail. Any ideas? Thank

Re: [PHP] A black thumbnail.

2006-01-28 Thread tedd
Hi again: I said: I'm trying to create a thumbnail from a jpeg stored in a long blob in mySQL. --- Richard said: Dynamic Thumbnail generation: http://www.weberdev.com/ViewArticle-388.html Yes, that's for generating a thumbnail from a file -- but

Re: [PHP] A black thumbnail.

2006-01-28 Thread tedd
Hi again: I said: I'm trying to create a thumbnail from a jpeg stored in a long blob in mySQL. --- -philip said: imagecreatefromjpeg takes a *filename* not the actual contents of the file itself. Yes, you are correct that in the statement: $image = imagecreatefromjpeg($fileContent); The

RE: [PHP] A black thumbnail.

2006-01-27 Thread Weber Sites LTD
Monitor : http://uptime.weberdev.com -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Saturday, January 28, 2006 2:43 AM To: php-general@lists.php.net Subject: [PHP] A black thumbnail. Hi: I'm trying to create a thumbnail from a jpeg stored in a long blob in mySQL. What

Re: [PHP] A black thumbnail.

2006-01-27 Thread Richard Correia
Hi Tedd, Dynamic Thumbnail generation: http://www.weberdev.com/ViewArticle-388.html On 1/28/06, tedd <[EMAIL PROTECTED]> wrote: > > Hi: > > I'm trying to create a thumbnail from a jpeg stored in a long blob in > mySQL. > > What's wrong here? I get an image that's the correct size, but it's bla

Re: [PHP] A black thumbnail.

2006-01-27 Thread Philip Hallstrom
(skip down) I'm trying to create a thumbnail from a jpeg stored in a long blob in mySQL. What's wrong here? I get an image that's the correct size, but it's black. Any ideas? $dbQuery = "SELECT image_type, image, image_width, image_height "; $dbQuery .= "FROM pictures "; $dbQuery .= "WHERE i

[PHP] A black thumbnail.

2006-01-27 Thread tedd
Hi: I'm trying to create a thumbnail from a jpeg stored in a long blob in mySQL. What's wrong here? I get an image that's the correct size, but it's black. Any ideas? Thanks. tedd $dbQuery = "SELECT image_type, image, image_width, image_height "; $dbQuery .= "FROM pictures "; $dbQuery .= "