Reply to Re: Resize an image stored in a DB prior to diplaying it on page

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация