Changeset 9616 for temp/trunk/data
- Timestamp:
- 2006/11/30 11:30:49 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/data/lib/gdthumb.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/data/lib/gdthumb.php
r9602 r9616 196 196 $dst_im = $imagecreate($re_size[0], $re_size[1]); 197 197 $imageresize( $dst_im, $src_im, 0, 0, 0, 0, $re_size[0], $re_size[1], $size[0], $size[1]); 198 sfprintr(imagecolorstotal($src_im));199 198 200 199 // ²èÁü½ÐÎÏ … … 229 228 imagecopyresized($dst_im,$src_im, 0, 0, 0, 0, $re_size[0], $re_size[1], $size[0], $size[1]); 230 229 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); 232 233 } 233 234
Note: See TracChangeset
for help on using the changeset viewer.
