#32389 [Opn->Asn]: imagecreatefrompng terminates connection

From: Date: Tue, 22 Mar 2005 17:39:53 +0000
Subject: #32389 [Opn->Asn]: imagecreatefrompng terminates connection
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-76914@lists.php.net to get a copy of this message
ID: 32389 Updated by: sniper@php.net Reported By: jbaou at datahost dot gr -Status: Open +Status: Assigned Bug Type: GD related Operating System: Slackware 10 PHP Version: 5.0.3 Assigned To: pajoye Previous Comments: ------------------------------------------------------------------------ [2005-03-22 05:32:46] jbaou at datahost dot gr I actually noticed that it works for SOME png images. http://jbaou.bahaha.org/browser.php?dir=.%2FImages%2FChristiana here it works. mouse over to check it. http://jbaou.bahaha.org/browser.php?dir=.%2FImages%2FWallpapers%2FDreamingOfTheFuture here is a folder with another png image. libpng ver: 1.2.8 i am sorry i cant be of any more help. i havent compiled with --enable-debug and i don't really have the time to recompile. I am currently in greece and i will be here for at least 21 days. ------------------------------------------------------------------------ [2005-03-21 08:05:32] pajoye@php.net Please provide the png images (links), your configure script and the libpng version. --Pierre ------------------------------------------------------------------------ [2005-03-21 04:26:07] jbaou at datahost dot gr Description: ------------ I am trying to create thumbs from image types: jpg,gif and png. jpg and gif work OK. While trying to create a png thumb i get the following error: Connection to host jbaou.bahaha.org is broken. ## php -m [PHP Modules] bcmath bz2 calendar ctype curl dba dbase dbx dio dom exif filepro ftp gd gettext gmp iconv imap libxml mbstring mhash mime_magic mysql ncurses openssl pcre posix session shmop SimpleXML sockets SPL SQLite standard sysvmsg sysvsem sysvshm tokenizer wddx xml yp Zend Optimizer zlib [Zend Modules] Zend Extension Manager Zend Optimizer ## ./configure http://jbaou.bahaha.org/phpinfo.php Reproduce code: --------------- if ($ext == ".png") { $im = imagecreatefrompng($image); //fe $thumb = imagecreatetruecolor($thumbWidth, $thumbHeight); ImageCopyResampled($thumb, $im, 0, 0, 0, 0, $thumbWidth, $thumbHeight, $imageDim[0], $imageDim[1]); imagepng($thumb, $thumbPath.$imgName); imagedestroy($im); } alt: http://jbaou.bahaha.org/browser.phps [method makeThumb($image)] Expected result: ---------------- a thumbnail :D Actual result: -------------- While trying to create a png thumb i get the following error: Connection to host jbaou.bahaha.org is broken. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32389&edit=1

« previous php.bugs (#76914) next »