Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: functions_image.php 5380 2011-02-21 12:04:43Z Tomm $
| * $Id$
|
*/
/**
| */
/**
|
Zeile 33 | Zeile 33 |
---|
$imgtype = $imgdesc[2]; $imgattr = $imgdesc[3]; $imgbits = $imgdesc['bits'];
|
$imgtype = $imgdesc[2]; $imgattr = $imgdesc[3]; $imgbits = $imgdesc['bits'];
|
$imgchan = $imdesc['channels'];
| $imgchan = $imgdesc['channels'];
|
if($imgwidth == 0 || $imgheight == 0) {
| if($imgwidth == 0 || $imgheight == 0) {
|
Zeile 96 | Zeile 96 |
---|
// Save Alpha... imagesavealpha($thumbim, true); }
|
// Save Alpha... imagesavealpha($thumbim, true); }
|
elseif($imgtype == 2)
| elseif($imgtype == 1)
|
{ // Transparent GIF? $trans_color = imagecolortransparent($im);
| { // Transparent GIF? $trans_color = imagecolortransparent($im);
|
Zeile 141 | Zeile 141 |
---|
@imagepng($thumbim, $path."/".$filename); break; }
|
@imagepng($thumbim, $path."/".$filename); break; }
|
@my_chmod($path."/".$filename, '0666');
| @my_chmod($path."/".$filename, '0644');
|
@imagedestroy($thumbim); $thumb['code'] = 1; $thumb['filename'] = $filename;
| @imagedestroy($thumbim); $thumb['code'] = 1; $thumb['filename'] = $filename;
|
Zeile 204 | Zeile 204 |
---|
switch($matches[2]) { case "k":
|
switch($matches[2]) { case "k":
|
$memory_limit = (($memory_limit+$thumbnail_memory) / 1024)."K";
| $memory_limit = ceil((($memory_limit+$thumbnail_memory) / 1024))."K";
|
break; case "m":
|
break; case "m":
|
$memory_limit = (($memory_limit+$thumbnail_memory) / 1048576)."M";
| $memory_limit = ceil((($memory_limit+$thumbnail_memory) / 1048576))."M";
|
break; case "g":
|
break; case "g":
|
$memory_limit = (($memory_limit+$thumbnail_memory) / 1073741824)."G";
| $memory_limit = ceil((($memory_limit+$thumbnail_memory) / 1073741824))."G";
|
} }
| } }
|