Date: 10/24/02
- Next message: Chris Grigor: "RE: [PHP-DB] printing an array"
- Previous message: joakim.andersson <email protected>: "RE: [PHP-DB] It counts everything not a specific day.."
- Maybe in reply to: Rankin, Randy: "[PHP-DB] Broken Links 2"
- Next in thread: 1LT John W. Holmes: "[PHP-DB] Re: [PHP] RE: [PHP-DB] Broken Links 2"
- Reply: 1LT John W. Holmes: "[PHP-DB] Re: [PHP] RE: [PHP-DB] Broken Links 2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thanks to everyone for the help.
For those interested, I have posted the final code below. It functions
beautifully with one exception: the resized image quality is rather poor. I
am now reading through the php manual and newsgroups for a solution, but if
anyone knows how to handle this it would be great to hear from you.
Thanks again for all your help!
Randy
--------- BEGIN CODE ------------------
<?
if( $image_id )
{
$sql="SELECT image_bin_data from IMAGES where image_id='$image_id'";
$result=db_query ( $sql );
$record=db_fetch_object ( $result );
$image=$record->image_bin_data;
$new_w=75;
$new_h=75;
Header("Content-type: image/png");
$src_img= <email protected>($image);
$dst_img= <email protected>($new_w, $new_h);
ImageCopyResampled($dst_img,$src_img,0,0,0,0,$new_w,$new_h,ImageSX($src_img)
,ImageSY($src_img));
ImagePng($dst_img);
ImageDestroy($dst_img);
};?>
--------- END CODE ------------------
- Next message: Chris Grigor: "RE: [PHP-DB] printing an array"
- Previous message: joakim.andersson <email protected>: "RE: [PHP-DB] It counts everything not a specific day.."
- Maybe in reply to: Rankin, Randy: "[PHP-DB] Broken Links 2"
- Next in thread: 1LT John W. Holmes: "[PHP-DB] Re: [PHP] RE: [PHP-DB] Broken Links 2"
- Reply: 1LT John W. Holmes: "[PHP-DB] Re: [PHP] RE: [PHP-DB] Broken Links 2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

