Здравейте излиза ми следната грешка
Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib failed to initialize compressor -- stream error in C:\xampp\htdocs\gallery\action\session.php on line 535
Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in C:\xampp\htdocs\gallery\action\session.php on line 535
при тази функция
function picturesPng($filename, $imageFile) {
list ($width, $height) = getimagesize($imageFile);
$src = imagecreatefrompng($imageFile);
$o_h = floor(AvararPixel * ($height / $width));
$tmp = imagecreatetruecolor(AvararPixel, $o_h);
imagecopyresampled($tmp, $src, 0, 0, 0, 0, AvararPixel, $о_h, $width, $height);
imagepng($tmp, avatarFolder . DIRECTORY_SEPARATOR . $this->username . DIRECTORY_SEPARATOR . $filename, 100);
imagedestroy($tmp);
imagedestroy($src);
return TRUE;
}
Кажете къде е грешката
Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib failed to initialize compressor -- stream error in C:\xampp\htdocs\gallery\action\session.php on line 535
Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in C:\xampp\htdocs\gallery\action\session.php on line 535
при тази функция
function picturesPng($filename, $imageFile) {
list ($width, $height) = getimagesize($imageFile);
$src = imagecreatefrompng($imageFile);
$o_h = floor(AvararPixel * ($height / $width));
$tmp = imagecreatetruecolor(AvararPixel, $o_h);
imagecopyresampled($tmp, $src, 0, 0, 0, 0, AvararPixel, $о_h, $width, $height);
imagepng($tmp, avatarFolder . DIRECTORY_SEPARATOR . $this->username . DIRECTORY_SEPARATOR . $filename, 100);
imagedestroy($tmp);
imagedestroy($src);
return TRUE;
}
Кажете къде е грешката