I build a class wich can resiz images. Now I have the following problem.
When I show the image on the webpage only 70 percent of the image is shown.
The image is reduced according to the following code
$picWidth = 300
$picHeight = 220
$this->temp_name = $_FILES['image']['tmp_name']
list($this->width, $this->height, $type, $attr) =
$tempImage = imagecreatefromjpeg($this->temp_name);
$thumb = imagecreatetruecolor($picWidth, $picHeight);
imagecopyresized($thumb, $tempImage, 0, 0, 0, 0, $picWidth, $picHeight,
$this->size = filesize($this->temp_name);
$this->binary = addslashes(fread(fopen($this->temp_name, "rb"),
$this->binary is placed in the database
The image is shown on the web according to the following.