ID: 25919 User updated by: agnermadsen at hotmail dot com Reported By: agnermadsen at hotmail dot com -Status: Feedback +Status: Open Bug Type: GD related Operating System: FreeBSD PHP Version: 4.3.3 New Comment:
Configure: './configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-zlib-dir=/usr' '--disable-all' '--with-regex=php' '--disable-cli' '--with-apxs=/usr/local/sbin/apxs' '--with-bz2=/usr' '--enable-ctype' '--enable-exif' '--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-xpm-dir=/usr/local' '--with-imap=/usr/local' '--with-imap-ssl=/usr/local' '--with-mcrypt=/usr/local' '--with-mysql=/usr/local' '--enable-overload' '--with-pcre-regex=yes' '--enable-posix' '--enable-session' '--enable-sockets' '--enable-tokenizer' '--enable-xml' '--with-expat-dir=/usr/local' '--with-zlib=yes' '--prefix=/usr/local' 'i386-portbld-freebsd4.8' Previous Comments: ------------------------------------------------------------------------ [2003-10-20 06:41:45] [EMAIL PROTECTED] What is the configure line you used to configure PHP? If you didn't use the bundled GD library, bogus this report yourself.. ------------------------------------------------------------------------ [2003-10-20 06:35:24] agnermadsen at hotmail dot com Description: ------------ If the file size of the JPEG-file is over 400kb then imagecreatefromjpeg() sometimes crashes and sometimes it's when it reaches imagecreatetruecolor(); Reproduce code: --------------- $width=650; $im = @imagecreatefromjpeg($pic); $size=getimagesize ($pic ); $height=intval($width/$size[0]*$size[1]); if ($height<$width/$size[0]*$size[1]) $height++; [EMAIL PROTECTED]($width,$height); imagecopyresampled ( $picre,$im, 0, 0, 0, 0, $width, $height, $size[0], $size[1]); imagejpeg($picre); imagedestroy($picre); imagedestroy($im); Expected result: ---------------- Made a new picture. Actual result: -------------- Nothing ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25919&edit=1