You are here: Re: Resize an image stored in a DB prior to diplaying it on page « PHP Programming Language « IT news, forums, messages
Re: Resize an image stored in a DB prior to diplaying it on page

Posted by bissatch on 09/21/05 18:10

bissatch@yahoo.co.uk wrote:
> Hi,
>
> I have a collection of images stored in a DB. They are there for the
> purpose of a news system. When the user views the homepage it will
> diplay cropped versions of the news where the user will them click the
> 'read more' link to view the entire article. It will also display a
> thumbnail of the article image. As the image is stored at its full
> display size in the DB I need to be able to resize it before outputing
> it.
>
> To display the image I use a PHP file called 'imageviewer.php' and pass
> the unique idetifier as a GET parameter. Once the correct image data
> column field has been queried I use the following line to output it
> within the <img> tag:
>
>
> 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?
>
> Cheers
>
> Burnsy

Ok, not many replies. Can anybody tell me how this might be done with
an image stored in a MySQL db if possible? Cheers

Burnsy

 

Navigation:

[Reply to this 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

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