Posted by bissatch on 09/19/05 15:32
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
Navigation:
[Reply to this message]
|