- Timestamp:
- 05/14/10 14:02:56 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/show_thumbs.php
r2651 r2782 44 44 $twidth = 160; # width of the thumb 160 pixel 45 45 $theight = $twidth * $height / $width; # calculate height 46 $theight = $theight < 1 ? 1 : $theight; 46 47 $thumb = imagecreatetruecolor ($twidth, $theight); 47 48 imagecopyresized($thumb, $pic, 0, 0, 0, 0,$twidth, $theight, $width, $height); # resize image into thumb
Note: See TracChangeset
for help on using the changeset viewer.