Re: A black thumbnail.

From: Date: Sat, 28 Jan 2006 14:55:25 +0000
Subject: Re: A black thumbnail.
Groups: php.general 
Request: Send a blank email to php-general+get-229396@lists.php.net to get a copy of this message
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 variable $fileContent should be a file name -- but it's the contents of the file that the function uses. So, what's the difference between a filename and its contents? Is there a header I should add? Or does the routine require a read operation? I'll look at some other functions. Thanks for your help. tedd -- -------------------------------------------------------------------------------- http://sperling.com/

« previous php.general (#229396) next »