Posted by Steve on 09/21/05 18:24
> echo pg_unescape_bytea($imgdata); //PostgreSQL database
> However, in this instance I need to be able to resize it to a thumbnail
> image prior to outputting. How would I do this?
First <http://www.php.net/manual/en/function.imagecreatefromstring.php>
then <http://www.php.net/manual/en/function.imagecopyresized.php> or
<http://www.php.net/manual/en/function.imagecopyresampled.php>, then
<http://www.php.net/manual/en/function.imagejpeg.php>, and finally
<http://www.php.net/manual/en/function.imagedestroy.php>.
---
Steve
[Back to original message]
|