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

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
Check out this article : http://www.weberdev.com/ViewArticle-3.html Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. PHP & MySQL Forums : http://www.weberforums.com Learn PHP & MySQL Playing Trivia : http://www.webertrivia.com Free Uptime Monitor : ht

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