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
[Back to original message]
|