Changeset 9616 for temp/trunk/data


Ignore:
Timestamp:
2006/11/30 11:30:49 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/lib/gdthumb.php

    r9602 r9616  
    196196                $dst_im = $imagecreate($re_size[0], $re_size[1]); 
    197197                $imageresize( $dst_im, $src_im, 0, 0, 0, 0, $re_size[0], $re_size[1], $size[0], $size[1]); 
    198                     sfprintr(imagecolorstotal($src_im)); 
    199198 
    200199                // ²èÁü½ÐÎÏ 
     
    229228                    imagecopyresized($dst_im,$src_im, 0, 0, 0, 0, $re_size[0], $re_size[1], $size[0], $size[1]); 
    230229                     
    231                     imagetruecolortopalette($dst_im, false, imagecolorstotal($src_im)); 
     230                    (imagecolorstotal($src_im) == 0) ? $colortotal = 65536 : $colortotal = imagecolorstotal($src_im); 
     231                     
     232                    imagetruecolortopalette($dst_im, false, $colortotal); 
    232233                } 
    233234                 
Note: See TracChangeset for help on using the changeset viewer.