|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-03-21 04:26 UTC] 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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 03:00:02 2025 UTC |
Found one there :) Sorry. Cannot reproduce a crash or an error. Please try using only this script: error_reporting(E_ALL); $im = imagecreatefrompng("yourimage.png"); imagepng("new.png"); If you have an image that crashes php, provide a direct link to it. --Pierre