convert.php File Reference

Creates thumbnails- deprecated. More...


Variables

 $link = getdb()
global $config
 $config [thumbnail_width] = "140"
 $shrinkage = 1
 $fp = fopen("$temp/$imagename", "r")
 $image = fread($fp, filesize("$temp/$imagename"))
 $imagedata = getimagesize("$temp/$imagename")
 $imagewidth = $imagedata[0]
 $imageheight = $imagedata[1]
 $imagetype = $imagedata[2]
 $dst_img = imagecreate($dest_width,$dest_height)
 $dst_img = imagecreate($dest_width, $dest_height)
 $fp = fopen("$temp/$thumbname" , "r")
 $thumb_size = filesize("$temp/$thumbname")
 $thumb = addslashes(fread($fp, $thumb_size))
 $query = "UPDATE ".$table_prefix."tbl_Files set thumb='$thumb', thumb_size='$thumb_size', thumb_filetype='$image_row[filetype]' where id_files = '$image_row[id_files]'"


Detailed Description

Originally used to convert the older installs not using thumbnail images in the database to use thumbnails.
Generated on Sat Mar 3 12:47:09 2007 for FreeRealty Real Estate Listing Scripts by  doxygen 1.4.7