
jeluf at users
May 20, 2004, 5:08 AM
Post #1 of 1
(2 views)
Permalink
|
|
phase3/includes Image.php,1.9,1.10
|
|
Update of /cvsroot/wikipedia/phase3/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26649 Modified Files: Image.php Log Message: Only generate truecolor PNGs if original image is already truecolor. Will still generate truecolor for PHP 4.2 or earlier. Fix for bug #918857 Index: Image.php =================================================================== RCS file: /cvsroot/wikipedia/phase3/includes/Image.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Image.php 20 May 2004 12:03:22 -0000 1.9 --- Image.php 20 May 2004 12:08:42 -0000 1.10 *************** *** 36,48 **** if ( $this->fileExists = file_exists( $this->imagePath ) ) // Sic!, "=" is intended { ! list($this->width, $this->height, $this->type, $this->attr) = getimagesize( $this->imagePath ); ! $gid = getimagesize( $this->imagePath ); ! $this->width = $gid["width"]; ! $this->height = $gid["height"]; ! $this->type = $gid["type"]; ! $this->attr = $gid["attr"]; ! if ( defined( $gid["bits"] ) ) { ! $this->bits = $gid["bits"]; } else { $this->bits = 0; --- 36,47 ---- if ( $this->fileExists = file_exists( $this->imagePath ) ) // Sic!, "=" is intended { ! $gis = getimagesize( $this->imagePath ); ! $this->width = $gis[0]; ! $this->height = $gis[1]; ! $this->type = $gis[2]; ! $this->attr = $gis[3]; ! if ( isset( $gis["bits"] ) ) { ! $this->bits = $gis["bits"]; } else { $this->bits = 0;
|